This is a discussion on "How do I stop it scrolling to the top?" within the Web Page Design section. This forum, and the thread "How do I stop it scrolling to the top? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How do I stop it scrolling to the top?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
How do I stop it scrolling to the top?
I've just built a gallery page with links that open a new 646x512px browser window. My problem is that whenever I open one of these windows the main page jumps back to the top, which can mean a lot of scrolling back down the main page.
Is there a small snippet of code that can be added to make the page stay where it is? Thx http://www.marksk.co.uk/spencerfox/gallery.html#prj05 |
|
|
|
|||
|
Re: How do I stop it scrolling to the top?
I assume you're using javascript for the links, which is not ideal. Anyway, for javascript links onclick="someFunction();", change them to onclick="someFunction(); return false;"
|
![]() |
| Tags |
| html, javascript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Music on/Off (does not stop in IE7) Need Help! | Webill | JavaScript Forum | 2 | May 11th, 2008 11:27 |
| Go to Stop issue | acrikey | Flash & Multimedia Forum | 1 | Dec 1st, 2007 23:48 |
| scrolling! help! | alexgeek | Webforumz Cafe | 5 | Aug 8th, 2007 17:37 |
| Stop Cyberbullying | pa007 | Webforumz Cafe | 11 | Apr 3rd, 2007 04:47 |
| How to Stop Robots | Gee Bee | Web Page Design | 4 | Jan 26th, 2006 18:56 |