PDA

View Full Version : links


Jimbo
02-28-2003, 12:09 AM
Ok, On the main page of my website I have an iframe. On each some of the pages that go in the iframe I have some links i.e.:
<a href="example.html#bob" target="iframe" onClick="javascript stuff">

These link to certain areas on different pages i.e.:
<a name="bob"></a>

These links work but when the browser window is smaller than the webpage and there are scrollbars, the links make the page with the iframe in it scroll to the bottom. Any help on how to prevent this?
Thanks in Advance
-Jimbo

chrismiceli
02-28-2003, 02:55 AM
<a href="example.html#bob" target="iframe" onClick="javascript stuff"> is making the browser go to that page and then go to the a named bob, which i am thinking is at the bottom, try <a href="example.html" target="iframe" onClick="javascript stuff">

cg9com
02-28-2003, 05:40 PM
when you use the anchors like that, it tends to display what you are linking to a the top of the page, making it easier to see everything underneath, it may seem as though its going to the bottom of the page, when in fact its just displaying your target at the top of the window. is this what your talking about?