avoiding jump with <a href="#" onclick="window.open....

J

jodleren

Hi all

I have a file I open in a smaller window, like this:

<a href="#" onclick="window.open....

but it also causes the main window to jump to the top. What have
people done to avoid that?

BR
Sonnich
 
R

Randy Webb

jodleren said the following on 2/15/2007 7:31 AM:
Hi all

I have a file I open in a smaller window, like this:

<a href="#" onclick="window.open....

but it also causes the main window to jump to the top. What have
people done to avoid that?

onclick="window.open('.....');return false"
 
E

Evertjan.

Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
jodleren said the following on 2/15/2007 7:31 AM:

onclick="window.open('.....');return false"

.... unless the modern IE/FF browser is set to always tab.

===============

What about gracefull
retardation/recreation/retalliation/what-was-that-d'mn-word-again?

<a
href='http://cnn.com/' target='_blank'
onclick='window.open(this.href);return false'CNN
</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top