Anda di halaman 1dari 6

107Javascript - OSS -...

1 of 6

OSS - http://www.ossez.com

1 of 6

: 107Javascript
: : 3
: 107Javascript

2012-12-17 08:06
1.

document.write( " ");

2.JS//
3.HTML:document- >html- >(head,body)
4.DOM:window>(navigator,screen,history,location,document)
5.:document.getElementById( "ID
").name(value)
6.JS: document.getElementById( "output ").value =
document.getElementById( "input ").value.toUpperCase();
7.JS:String,Number,Boolean,Null,Object,Function
8.JS:parseInt(),parseFloat()
9.JS:( " " )
10.JS:(length)
11.JS .
12.JS:==,!=, >, >=, <. <=
13.JS:var
14.JS:if(condition){}else{}
15.JS:for([initial expression];[condition];[upadte expression]) {inside
loop}
16.:break
17.JS:
1. function functionName([parameter],...){statement[s]}

18.form.document.forms[0],document.forms[1]

12/16/2012 7:08 PM

107Javascript - OSS -...

2 of 6

OSS - http://www.ossez.com

2 of 6

.
19.:window.open(), :window.close(), :self
20.:window.status= " ";
21.:window.alert( " ");
22.:window.confirm();
23.:window.prompt();
24.:window.location.href= "URL "
25.:document.forms.length
26.:document.close();
27.: =
28.:document.createElement(),document.createTextNode()
29.:document.getElementById()
30.:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

var form = window.document.forms[0]


for (var i = 0; i <form.elements.length;i ){
if (form.elements.type == "text "){
form.elements.value = " ";
}
}

31.JS:document.forms[0].checkThis.checked (checked
TRUEFALSE)
32.():
document.forms[0].groupName.length
33.checked.
34.:document.forms[0].selectName.options[n].value (n
.selectedIndex)
35.:var myString = new String( "This is lightsword ");
12/16/2012 7:08 PM

107Javascript - OSS -...

3 of 6

OSS - http://www.ossez.com

3 of 6

36.:string.toUpperCase(); :string.toLowerCase();
37.21:String1.indexOf( "String2 ")!=-1.
38.:StringA.charAt(9);
39.:stringA.substring(2,6);
40.:Math.PI(),Math.SQRT2(),Math.max(value1,value2)
,Math.pow(value1,10)
value1,Math.round(value1),Math.floor(Math.random()*(n 1))

41.:var today = new Date();


42.:dateObj.getTime(),dateObj.getYear()
,dateObj.getFullYear(),dateObj.getMonth()

,dateObj.getDate(),dateObj.getDay(),dateObj.getHours()
,dateObj.getMinutes()
,dateObj.getSeconds(),dateObj.setTime(value)
,dateObj.setYear(val),dateObj.setMonth(val)

,dateObj.setDate(val),dateObj.setDay(val),dateObj.setHours
,dateObj.setMinutes(val)

,dateObj.setSeconds(val) [:0]
43.FRAME: [window.]frames[n].ObjFuncVarName,frames[ "frameName
"].ObjFuncVarName,frameName.ObjFuncVarName
44.parent,top
45.:opener
46.:this
47.JS:(javascript :)
48.JS: <!-- //-- >
49.JS: <script type= "text/javascript " src= "aaa.js " > </script >
50.HTML: <noscript > </noscript >

12/16/2012 7:08 PM

107Javascript - OSS -...

4 of 6

OSS - http://www.ossez.com

4 of 6

51.onCLICK,a.html,b.html.: <a
href= "a.html " >dfsadf </a >
52.JS

:Array,Boolean,Date,Error,EvalError,Function,Math,Number,Object,RangeError,ReferenceErro
53.JS:&#92;n
54.: <script >function fullScreen(){ this.moveTo
(0,0);this.outerWidth=screen.availWidth;
this.outerHeight=screen.availHeight;}window.maximize=fullScreen; </script >
55.JSall
56.JS:document.getElementByid( " ").tabIndex = 1
57.innerHTML: <p id= "para " > "how are <em >you </em >
" </p >,innerHTML:how are <em >you </em >
58.innerTEXT, <em >.
59.contentEditable,isContentEditable.
60.isDisabled.disabled
61.length,
62.addBehavior()JS.htc
63.window.focus().
64.blur().FOCUS().
65.select().
66.:
67.:document.all.tags( "div(HTML)
").length
68.JS:
.window.showModaldialog(),window.showModeless()
69.:window.status= &apos; &apos;,
:window.defaultStatus = &apos;. &apos;;

12/16/2012 7:08 PM

107Javascript - OSS -...

5 of 6

OSS - http://www.ossez.com

5 of 6

70.:external.AddFavorite( "http://www.dannyg.com ";, "jaskdlf ");


71.JS:window.onerror = doNothing;
:window.onerror = handleError;
72.JS:window.opener,opener.opener....
73.JSself
74.JS:window.status= " "
75.JStop
76.JS:window.close();
77.JS:if(confirm( "Are you sure? ")){alert( "ok ");}else{alert( "Not
Ok ");}
78.JS:window.navigate( "http://www.sina.com.cn ";);
79.JS:window.print()
80.JS:window.prompt( "message ", "defaultReply ");
81.JS:window.scroll(x,y)
82.JS:window.scrollby
83.JS:setInterval( "expr ",msecDelay)
setInterval(funcRef,msecDelay)setTimeout
84.JSIE4 ,NN:showModalDialog( "URL "[,arguments]
[,features]);
85.JS:function verifyClose(){event.returnValue= "we really
like you and hope you will stay longer. ";}}
1. window.=verifyClose;

86.:onload()
87.:onunload()
88.window.location:
protocol(http:),hostname(www.example.com),port(80),host(www.example.com:80),pathname
( "/a/a.html "),hash( "#giantGizmo ",),href()
89.window.location.reload().

12/16/2012 7:08 PM

107Javascript - OSS -...

6 of 6

OSS - http://www.ossez.com

6 of 6

90.window.history.back(),window.history.forward()
,window.history.go(,URL)
91.document.write(),document.writeln()
92.document.body.noWrap=true;.
93..charAt(),.
94. "abc ".charCodeAt(),ASCii.
95.:string.concat(string2), =
96..indexOf( " ",),(0)
97.string.lastIndexOf(searchString[,startIndex]).
98.string.match(regExpression),.
99.string.replace(regExpression,replaceString).
100.string.split().
101.string.substr(start[,length]).
102.string.toLowerCase().
103.string.toUpperCase().
104.parseInt(string[,radix()]).
105.parseFloat(string[,radix]).
106.isNaN():.
107.:const,:var

OSS (http://www.ossez.com/)

OSS

12/16/2012 7:08 PM

Anda mungkin juga menyukai