PDA

View Full Version : "javascript::" opens link


rjs-ccr
07-15-2002, 03:38 AM
Can anyone help me figure out how to write a script that opens all of my links on a site with the line "javascript;:", while only displaying this in the status bar.

Kinda like this

javascript;: open="main.htm"

I know that the coding is terribly wrong but I am a newbie at this and can't find any info for it, and am ready to pull my hair out.

Thanks:confused:

x_goose_x
07-15-2002, 03:53 AM
Open in new win:

<a href="javascript: window.open('main.htm');" onmouseover="top.window.status='Main Page'; return true" onmouseout="top.window.status=''; return true">Main</a>

Open in current win:

<a href="javascript: location.replace('main.htm');" onmouseover="top.window.status='Main Page'; return true" onmouseout="top.window.status=''; return true">Main</a>

rjs-ccr
07-15-2002, 04:02 AM
Thanks that works great.

One more question, how would I have the link open in lets say a main frame

x_goose_x
07-15-2002, 04:29 AM
<a href="javascript: top.window.framename.location.replace('main.htm');" onmouseover="top.window.status='Main Page'; return true" onmouseout="top.window.status=''; return true">Main</a>

rjs-ccr
07-15-2002, 05:26 PM
Thanks Again

See ya,
:thumbsup: