1. document.write (""); The comments in the output statement 2.JS are//3. The traditional HTML document order is: document->html-> (head,body) 4. The DOM order in a browser window is: window-> (Navigator,screen, history,location,document) 5. Get the name and value of the element in the form: document.getElementById ("ID of element in form"). Name (or value) 6. A lowercase to uppercase JS: document.getElementById ("Output"). Value = document.getElementById ("input"). Value.touppercase (); Value types in 7.JS: String,number,boolean,null,object,function 8.JS Converts a character type into a numeric type: parseint (), parsefloat () 9.JS converts numbers into character type: ( "" variable) the length of the string in 10.JS is: (length) the character in 11.JS with the word typeface connection use. The comparison operator in 12.JS is: = = equals,! = is not equal to, >=, <. <= 13.JS declares a variable using: var to declare the structure of the decision statement in 14.JS: the loop structure in the IF (condition) {}else{} 15.JS: for ([Initial expression];[ Condition]; [Upadte expression]) {inside loop} 16. The command for The Loop abort is: function definition in break 17.JS: Functions functionname ([parameter],...) {Statement[s]} 18. When multiple form forms appear in a file, you can use document.forms[0],document.forms[1] instead. 19. Window: Open Window window.open (), close a window: window.close (), window itself: Self 20. Settings for the State bar: window.status= "character"; 21. Popup Message: Window.alert ("character"); 22. Popup Confirm Box: Window.confirm (); 23. Popup Input Prompt Box: window.prompt (); 24. Specify the location of the current display link: window.location.href= "URL" 25. Remove the number of all forms in the form: Document.forms.length 26. Close the output stream of the document: Document.close (); 27. String Append connector: = 28. Create a document element: Document.createelement (), document.createTextNode () 29. Methods for getting elements: document.getElementById ( ) 30. Set the value of the members of all text types in the form to be null: var form = window.document.forms[0] for (var i = 0; i
JavaScript written test prerequisite statement "Go"