InterviewSolution
| 1. |
How Do We Get Javascript Onto A Web Page? |
|
Answer» The script ELEMENT can directly be added INSIDE the body of the PAGE. It should START with the TAG <script> and end with </script> tag. The script can also be added to the head tag of the web page. Similarly the other way is by placing the script in a separate file which gets downloaded on the client’s machine when the page is requested. The script element can directly be added inside the body of the page. It should start with the tag <script> and end with </script> tag. The script can also be added to the head tag of the web page. Similarly the other way is by placing the script in a separate file which gets downloaded on the client’s machine when the page is requested. |
|