You are on page 1of 6

'alert("text");

/* * / //
Var1 = "some value";
Var1 + var2
\n new line
\' to write '
\" to write "
\\ to write \
'function fun_name(par1,par2,par3)
{
Some code;
}

&& and
|| or
! not
If(condition)
{
Some code;
}
If(condition)
{
Some code
}
Else
{
Some code

If

If else

}
Switch (var1)
{
Case 1:
Code;
Break;
Case n;
Code;
Break;
Default:
Code;
}
For(start;end;condition)
{
Some code
}
While(condition)
{
Some code
}

switch

Do
{
Code
}
While(cond);
Var now = new Date()
Alert(now);
Now.getHours
Now.getMinutes

Do while

For

while

Now.getSeconds
Now.getDay
Now.getYear
Now.getMonth
Now.getTimezoneOffset
Now.setFullYear
Now.setHours
Now.setMonth
Now.setMinutes
Now.setSeconds
Now.setDate
Document.bgColor=''

DATE

Document.fgColor=''
Window.status='text';


....
'onMouseOver

'onSubmit

'onLoad

'onUnLoad

'document.formname.element.property

Number(x) + Number(y)


0 1 2
)"'window.open("URL","Pagename","Property

'menubar=yes or no
Width
Height
Left
Top
Resizeable
Status

Document
Window

"Var1.document.write"sdasdasd

;)(Window.close

ondblclick
onMouseOut
onMouseDown
onkeypress
onfocus
onhelp
onresize

onscroll
onKeyDown
onKeyUp
;)"Alert("text
;)"Confirm("prompt
;)"Prompt("text","value
><script src="file.js"></script


v>10 ? true : false

><div id="name"></div


;"Name.innerHTML="new text or code


)


;)setTimeout("function()",time in milleseconds




"<SPAN id="name it here
>";style="position:absolute;left:50;top:40
></SPAN

Xpos=event.x
Ypos=event.y

;Document.onmousemove=function


div_id.style.top=new value
div_id.style.left=new value

div_id


"style="position:relative;top:0px;left:0px
Formname.itemname.value




https://www.facebook.com/efhamcomputerx

You might also like