This is a summarized form of the JavaScript Tutorial.
For reference JavaScript specifications can be found here .
personObj=new Object(); personObj.firstname="John"; personObj.newfirstname = function (new_firstname) { this.firstname=new_firstname; }
function person(firstname) { this.firstname=firstname; this.newfirstname = function (new_firstname) { this.firstname=new_firstname; } } myFather=new person("John");
function person(firstname) { this.firstname=firstname; this.newfirstname=newfirstname; } function newfirstname(new_firstname) { this.firstname=new_firstname; }
var mycars=new Array("Saab","Volvo","BMW");
function intSort (a, b){ return a - b;}
function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); }
document.getElementById("block_id").innerHTML=txt;
var t=setTimeout("javascript statement",milliseconds); clearTimeout(t);