Output statement 1.document.write ("");

Notes for the 2.JS / /

3. The traditional order of the HTML document: document-> html-> (head, body)

4. A browser window DOM is the order of: window-> (navigator, screen, history, location, document)

5. Be a form of the name and value element: document.getElementById ( "form element ID No."). Name (or value)

6. A lowercase to uppercase JS: document.getElementById ( "output"). Value = document.getElementById ( "input"). Value.toUpperCase ();

7.JS of value types: String, Number, Boolean, Null, Object, Function

8.JS convert the numeric character: parseInt (), parseFloat ()

The figures in 9.JS into character variables :(""+)

10.JS check the length of the string is: (length)

Characters in 11.JS characters connected with the use of plus.

Comparison of 12.JS operators are: == equal,! = ,>,>=,<.<= Does not mean

13.JS variables used in the statement: var statement to

Statement of the judge 14.JS structure: if (condition) () else ()

15.JS the cycle structure: for ([initial expression]; [condition]; [upadte expression]) (inside loop)

16. Cycle the suspension order is: break

17.JS the function definition: function functionName ([parameter ],...){ statement [s])

18. When the paper appeared in a number of form form. Can use document.forms [0], document.forms [1] instead.

19. Window: Open the window window.open (), the closure of a window: window.close (), the window itself: self

20. Status Bar settings: window.status = "character";

21. Pop-up message: window.alert ( "character");

22. Pop-up box to confirm: window.confirm ();

23. Pop-up box enter the prompt: window.prompt ();

24. Specify the location of the current show links: window.location.href = "/ blog / URL"

25. Out of all forms of the number of forms: document.forms.length

26. Close the document output stream: document.close ();

27. String additional connections at: + =

28. To create a document element: document.createElement (), document.createTextNode ()

29. Be elements of the method: document.getElementById ()

30. Set form of members of all text-based value of the air:

var form = window.document.forms [0]

for (var i = 0; i <form.elements.length; i + +) (

if (form.elements.type == "text") (

form.elements.value = "";

)

)

31. Check button is selected to determine whether JS in: document.forms [0]. CheckThis.checked (checked attribute is selected for the return on behalf of TRUE or FALSE)

32. Radio button group (the name of the radio button must be the same): check the length of the radio button group document.forms [0]. GroupName.length

33. Radio button group is selected to determine whether to use checked.

34. The value of the drop-down list box: document.forms [0]. SelectName.options [n]. Value (n is sometimes used to add the name of the drop-down list box. SelectedIndex to determine the selected value)

35. The definition of string: var myString = new String ( "This is lightsword");

36. String to uppercase: string.toUpperCase (); string into lower case: string.toLowerCase ();

37. To return to the string 2 in string 1 in the location: String1.indexOf ( "String2 ")!=- 1 indicates not found.

38. Check the location of the string of a specified character: StringA.charAt (9);

39. Remove the string specified in the beginning and end of the sub-string: stringA.substring (2,6);

40. Mathematical functions: Math.PI (return pi), Math.SQRT2 (the return of prescription), Math.max (value1, value2) return the number two of the most in value, Math.pow (value1, 10) return value1 power of ten, Math.round (value1) rounding function, Math.floor (Math.random () * (n +1)) return random numbers

41. The definition of date-type variables: var today = new Date ();

42. Date function list: dateObj.getTime () get the time, dateObj.getYear () to be the year, dateObj.getFullYear () has been four years, dateObj.getMonth () to be the month, dateObj.getDate () to be on, dateObj . getDay () get a few dates, dateObj.getHours () to be hours, dateObj.getMinutes () to be sub, dateObj.getSeconds () to be seconds, dateObj.setTime (value) set the time, dateObj.setYear (val) set up, the dateObj.setMonth (val) set on, dateObj.setDate (val) set the date, dateObj.setDay (val) set up a few weeks, dateObj.setHours set hours, dateObj.setMinutes (val) set points, dateObj.setSeconds (val) set seconds [Note: this date from the beginning of 0]

43.FRAME the expression: [window.] Frames [n]. ObjFuncVarName, frames [ "frameName"]. ObjFuncVarName, frameName.ObjFuncVarName

44.parent object on behalf of his father, top representatives of the top object

45. Open the child window to parent window: opener

46. That their current position: this

47. When a hyperlink to call JS function when: (javascript function to increase at the beginning of the back of

48. In the old browsers do not perform this JS :<!-- //-->

49. To quote a file-based JS: <script type="text/javascript" src="/blog/aaa.js"> </ script>

50. Specified does not support script in the browser displays the HTML: <noscript> </ noscript>

51. When the hyperlink and have onCLICK events, then the old version of your browser turn a.html, otherwise turn b.html. Cases: <a href = "/ blog / a.html" / blog / b.html "; return false "> dfsadf </ a>

Built-52.JS objects: Array, Boolean, Date, Error, EvalError, Function, Math, Number, Object, RangeError, ReferenceError, RegExp, String, SyntaxError, TypeError, URIError

53.JS in line: \ n

54. Window full-screen size: <script> function fullScreen () (this.moveTo (0,0); this.outerWidth = screen.availWidth; this.outerHeight = screen.availHeight;) window.maximize = fullScreen; </ script >

55.JS of all on behalf of its middle and lower classes of all elements

The focus of 56.JS order: document.getElementByid ( "form element"). TabIndex = 1

57.innerHTML the value is the value of form elements: if <p> "how are <em> you </ em>" </ p>, the value of the innerHTML is: how are <em> you </ em>

58.innerTEXT the same value and above, but will not show up <em> this tag.

Whether elements can be set 59.contentEditable can be modified, isContentEditable whether to return to the state to modify.

60.isDisabled to determine whether to prohibit the state. Disabled prohibits state

Made 61.length length, to return integer values

62.addBehavior () is an external function call JS file its extension. Htc

63.window.focus () so that the current window before the window at all.

64.blur () refers to the loss of focus. And FOCUS () the opposite.

65.select () refers to selected elements.

66. To prevent the users of the text of text box: onfocus = "this.blur ()"

67. Out of the elements in the page number appearing in: document.all.tags ( "div (or other HTML tags)"). Length

68.JS divided into two forms of output: modal and modeless. Window.showModaldialog (), window.showModeless ()

69. The status bar text settings: window.status = 'text', the default settings of the status bar text: window.defaultStatus = 'word.';

70. Add to Favorites: external.AddFavorite ( "http://www.cnblogs.com/css/";, "jaskdlf");

71.JS script error when encountered in the operation will not do anything: window.onerror = doNothing; specified handle syntax errors as: window.onerror = handleError;

72.JS specified in the current window to open the parent window: window.opener, support multiple opener.opener ... continue.

73.JS of self refers to the current window

74.JS content in the status bar shows: window.status = "content"

75.JS the top of the framework refers to the concentration of the most top-level framework

76.JS in the closure of the current window: window.close ();

77.JS in the box to confirm whether or not: if (confirm ( "Are you sure ?")){ alert (" ok ");) else (alert (" Not Ok ");)

78.JS redirect the window: window.navigate ( "http://www.cnblogs.com/css/";);

79.JS in print: window.print ()

80.JS prompted to enter in the box: window.prompt ( "message", "defaultReply");

81.JS scroll bar of the window: window.scroll (x, y)

82.JS scroll down to the window location: window.scrollby

83.JS set time intervals: setInterval ( "expr", msecDelay) or setInterval (funcRef, msecDelay) or setTimeout

Modal 84.JS in IE4 + is displayed in line, not in the NN in: showModalDialog ( "URL" [, arguments] [, features]);

85.JS before exiting in the use of the handle: function verifyClose () (event.returnValue = "we really like you and hope you will stay longer .";}} window.onbeforeunload = verifyClose;

86. When the first call form the use of file handles: onload ()

87. When the form to close file handles when the call: onunload ()

88.window.location attributes: protocol (http:), hostname (www.example.com), port (80), host (www.example.com:80), pathname ( "/ a / a.html") , hash ( "# giantGizmo", refers to the corresponding anchor Jump to remember), href (all information)

89.window.location.reload () to refresh the current page.

90.window.history.back () return to the previous page, window.history.forward () to return to next page, window.history.go (to return to the first few pages, but also can use the visit to the URL)

91.document.write () not-for-line output, document.writeln () for line output

92.document.body.noWrap = true; prevent folding line text link.

93. Variable name. CharAt (first few), take the first number of the variable characters.

94. "Abc". CharCodeAt (first few), to return to the first few characters of code ASCii value.

95. String: string.concat (string2), or connect with + =

96. Variable. IndexOf ( "character", start position), appears to return to the first position (start from 0)

97.string.lastIndexOf (searchString [, startIndex]) the location last seen.

98.string.match (regExpression), to determine whether the matching characters.

99.string.replace (regExpression, replaceString) to replace the existing string.

100.string.split (separator) returns an array of stored values.

101.string.substr (start [, length]) take a few from the first string to the specified length.

102.string.toLowerCase () so that all into a small string.

103.string.toUpperCase () so that all characters to uppercase.

104.parseInt (string [, radix (on behalf of M-ary)]) into a plastic cast.

105.parseFloat (string [, radix]) forced into floating-point type.

106.isNaN (variable): Test whether the value type.

107. The definition of the keyword constants: const, the definition of variables keyword: var