If you want something you've never had, you must be willing to do something you've never done!

Powered by Blogger.

JavaScript Language 0

Cerita Semalam Aaz | 7:43 PM | ,


JavaScript Variable

  • You create a variable with or without the  var statement

          var strname = some value strname = some value
  • When you declare a variable within a function, the variable can only be accessed within that function
  • If you declare a variable outside a function, all the functions on your page can access it
  • The lifetime of these variables starts when they are declared, and ends when the page is closed
JavaScript Popup Boxes
  • Alert box
              > User will have to click "OK" to proceed
              > alert("sometext")
  • Confirm Box
              > User will have to click either "OK" or "Cancel" to proceed
              > 
confirm("sometext")
  • Confirm Box
              > User will have to click either "OK" or "Cancel" to proceed after entering an input vaule
              > prompt("sometext","defaultvalue")

JavaScript Language
  • Conditional statement
               >if, if.. else, switch
  • Loop
              >for loop, while loop



TRY...CATCH :D







0 Responses So Far:

Related Post

 
Back To Top