Contact Us || Privacy Policy || About Us |
|
JS ExampleThere are three way to use of Java Script Example . that is
Syntax: 1) Use in body tag ExampleDisplay a alert dialog box. Example: Test it Now2) Use in head tag ExampleCreate a function in JavaScript you need to onclick event to call msg() function.. Example: Test it Now3) Use in external javaScript file (.js) ExampleWhen we can write JavaScript code in other file having an extension .js and link the file inside the <head> tag of the HTML file. Exampleindex.html p.js Note: JS file is link to index.html file Test it Now
Next TopicJS Comments
|