April 12, 2000 - Avoiding the Jump | WebReference

April 12, 2000 - Avoiding the Jump

Yehuda Shiran April 12, 2000
Avoiding the Jump
Tips: April 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

There are two ways to avoid jumping to a new page when pressing a link. First, using a javascript function:

<A HREF="javascript:void(0)">first method</A>

and secondly, using the "

#
" character:

<A HREF="#">second method</A>

These links, of course, are programmed to perform other event handling, such as onClick etc.

Learn more about windows creation and usage in Tutorial 1, Working with Windows.