JavaScript written test prerequisite statement "Go"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.