That's the problem with eternity; there's no telling when it will end.” Tom Stoppard
A resource for web developers a code snippet library with step by step tutorials.

a niche content web resource for geeks

       

Search Amazon

JavaScript: Essentials - enhancing your JavaScript knowledge

 

This page may add some essential abilities to your JavaScript knowledge base.


JavaScript code library snippets listed by subject.


Opening a new window and controlling the new window's characteristics: 3 alternatives.

1.

Calling a function with arguments using JavaScript pseudo-protocol 'javascript:' to open a new window from a hyperlink.

Controlling the characteristics of the new window with the function arguments.

Correct use of quotes for the arguments.

2.

Calling a function with arguments using the 'onClick' event to open a new window from a hyperlink.

Overriding the default action of the link with the hash mark '#' and 'return false'.

Controlling the characteristics of the new window with the function arguments.

3.

Calling a function with arguments using the 'onClick' event to open a new window from a hyperlink.

Placing the 'url' in the link to allow action to degrade gracefully if user has JavaScript is turned off.

Overriding the default action of the link with 'return false'.

Roll-over image hyperlink navigation.

4.

Creating a roll-over image link.

Preloading the images to create a seamless roll-over action.

Use of 'onMouseOver' and 'onMouseOut' events.

Hyperlink navigation from a drop down selection list.

5.

Drop down selection list navigation using 'document.location.href'.

Using a form and the 'select' element.

Incorporating a 'Go' button to increase accessibility.

Suggest a code snippet to add to this page.

Rate this page:








Back to top.

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk