I don't have a beginner's tutorial on JavaScript on my site yet. (I plan to some day). These examples are really for people who already know the basics of using JavaScript in a web page. But below are some basic instructions for viewing and copying JavaScript source code. Note that the technique you will use depends on whether your browsing with Microsoft Internet Explorer or Netscape Navigator.
If you're browsing with Microsoft Internet Explorer:
To open that saved file on your PC, and view its source, see below.
Netscape Navigator's View Source option often hides much of the JavaScript code in a page. So if you're browsing with Navigator, follow these steps to copy and view JavaScript source code:
A copy of the page is now on your PC, in whatever folder you specified in step 2. (Or on your Windows desktop.) To see the code, read the next section.
Once you've saved a page from the web to your own PC, you can open it in Notepad or any other text editor to see the source code. In Windows 95/98, the easiest way is to do that is:
The page opens in Notepad, or whatever text editor you're using. You can now cut-and-paste using standard Windows techniques.
|