javascript in html

You place JavaScript within the <head> or <body> section (or both) of an HTML document and you can place multiple scripts on a given page.
It's wired to put a program in another language, but as the JavaScript is a language useful, then I have to be known of some thing of it. I will try to used to it.

HTML document, javascript is using these element to manage the whole web page.
If your JavaScript program attempts to work with some elements of the HTML document before those elements have been loaded, the program will
fail. Then you must write the javascript in position somewhere the elements have loaded themselves.

One especially good method for solving this problem is with the jQuery ready() function.

 

原文地址:https://www.cnblogs.com/henyihanwobushi/p/javascript.html