Click to See Complete Forum and Search --> : Pop Up's


Chris Mayer
07-02-2003, 06:04 AM
I am using a very simple script that creates pop up's. However, my page is quite long and when i click to bring a pop up, up then the main page refreshes to the top, meaning that I have to scroll down to the section I was reading. How can i ensure that the page will stay where it is when I select a pop up link??

Cheers

Chris

Charles
07-02-2003, 06:31 AM
Not only will this solve your immediate problem, but it will keep your links working for the 13% of users who do not use JavaScript :

<a href="http://www.w3.org/TR/WCAG10/" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false">WCAG 1.0</a>