If you have been directed to this tutorial from a search engine, you may be interested to know that the FGD Website has other tutorials, covering a variety of different subjects relating to Web design. These tutorials can be accessed through the main FGD 'Tutorials' page. FGD is a totally FREE resource of FREE stuff and information that will help you get your Web design skills up to grade. Why don’t you visit us and see what we have to offer!
JavaScript is a cut down version of Java. JavaScript has all the functionality of Java but the more complex parts are left out and the remainder adjusted to ensure maximum usability on the web. JavaScript is a widely used language on the web and can produce some great effects.
EXAMPLESFor this tutorial I am going to use the Bookmark Us JavaScript as this will be helpful to you in keeping returning visitors, another reason being this particular JavaScript requires an external file, which you will encounter with some JavaScript code. Copy the code below:
Paste the text into Notepad (Found in, Start -All Programs- Accessories-Notepad).
Save the File as bookmark.js.
Make sure you save the bookmark.js file in the same location as your web pages.
Select and copy the text below:
Paste the code into the <HEAD> tag of your web page.
The SRC (source) is bookmark.js make sure your file is saved as this, if you have saved your file to another folder you will need to change the SCR (example - new folder/bookmark.js) to that folder.
Copy the code below:
Paste the code into the <BODY> tag of your web page.
You will need to change the Onclick address from www.freegeardesign.co.uk to your website address. Save and view your web page.