Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A script is a small piece of program that can add interactivity to your website. For example, a script could generate a pop-up alert box message, or provide a dropdown menu. This script could be written using JavaScript or VBScript.
- You can write various small functions, called event handlers using any of the scripting language and then you can trigger those functions using HTML attributes.
- Now-a-days, only JavaScript and associated frameworks are being used by most of the web developers, VBScript is not even supported by various major browsers.
- You can keep JavaScript code in a separate file and then include it wherever it's needed, or you can define functionality inside HTML document itself. Let's see both the cases one by one with suitable examples.
- External JavaScript
- If you are going to define a functionality which will be used in various HTML documents then it's better to keep that functionality in a separate JavaScript file and then include that file in your HTML documents. A JavaScript file will have extension as .js and it will be included in HTML files using <script> tag
- downlead
- http://vaugette.com/1GcL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement