prompt("What is your name?", "Enter your name here")
parseInt("12") //you could parseInt("1.2") == 1 and you could parseInt("3 dozen")
parseFloat("1.2")
NaN: parseFloat("$3.4") = NaN //should not include $
isNaN(xxx): check if a value is not a number
document.getElementById("ddd").value
xxx.toFixed(2): round the value to 2 decimal places.
form.submit()
setTimeOut("alert('wake up!');", 60000);
setInterval("alert('wake up!');", 60000); //repeated
clearInterval(timerId);
location.reload();
document.body.clientHeight
document.body.clientWidth
document.getElementById("rockImg").style.height="100px";
onload
onresize
document.cookie.split(';');
if(navigator.cookieEnabled)
In JavaScript, array could contains different type of data, that's different from Java
var showTime = new Array();