Sitemap


  [ Connect Symbol ] The best coffee is Java

JavaScript for Links


*

 

Some users may not be able to use Java Applets or Javascript, and for this reason the cunning links created with these languages should also be supported by traditional links. For more discussion on this check the Javascript pages.

 
*

 

If you are a JavaScript-deprived surfer you will now receive a warning message:

 
*

 

Back Button

Back is a button on the Browser toolbar with which some users may not be very familiar. Or if you are using Internet Explorer then the BACKSPACE key works just as well.

There is a very simple way of simulating this using OnClick which sems to work all the time, and you can change the text, font, size and put in an image if you wish:

back

<a href="#" onClick="history.go(-1)">back</a>

You can do this with Javascript which can take you up or down the History menu option listings on the browser toolbar. The effect is not the same as the Toolbar Back button which uses a different list, but will usually produce a useful result.

Of course you could be more assertive and assume that visitors are reasonably aware, and know about the browser toolbar ....

 
*

 

Highlit Buttons

Note: The highlight only works for visitors using Netscape and the latest versions of Explorer. The electronically deprived will be presented with an error message, for which you have to click OK. So in this example I have included a test for Browser and bypassed the code if visitors do not have this facility. If they have no Java, then the standard link should still work.

You may like the way that the standard coloured text links change colour as you click them, or when they have been clicked already. Or the way that the Form-Submit Buttons look as if they have been depressed when clicked. You can do this to your image links using JavaScript.

The trick is to have two sets of images, identical except for the background colour. This set uses onmouseover and onmouseout. More sophisticated programming is possible if you feel like putting in the effort.

Go back     Go next     Go help

 
*

 

Select Form

There are three types of Select Forms, Multiple, Single and Radio Buttons. This one is Single Select, and has been set up with JavaScript the pages in the Helper series. If you take any of these options, please come back using the toolbar BACK button.

If the surfer does not have Java then it will not work. Which may be a problem.

 
*

[ Top ]

 
*

 

Website by: Richard Waller
Comments? Suggestions? Contributions?
Please contact waller@waller.co.uk
      Go to HomePage Home
Page
     Go to Sitemap Site
Map

URL: http://www.waller.co.uk/javalink.htm