Advertisement
mohamedn123

JavaScript

Apr 20th, 2019
3,480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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.
  2.  
  3. 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.
  4.  
  5. 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.
  6.  
  7. 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.
  8.  
  9. External JavaScript
  10. 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
  11. downlead
  12.  
  13. http://vaugette.com/1GcL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement