tags:

views:

29

answers:

2

For example:

PageA.html

<a href="pageB.html#bottom">Go to Page 2 Bottom</a>

PageB.html

lots of breaks so that the hyperlink is towards the bottom with lots of vertical scroll.

<br/><br/><br/>...<a name="bottom">bottom of page</a>

When I click the link of PageA, I want it to go to PageB, but end up with the bottom A scrolled into view, but it doesn't. I'm sure it is something very simple.

A: 

Add id to your tag next to name.

Page A:

 <a href="pagename.hml#anchor">link text</a> 

Page B:

 <a name="anchor" id="anchor">paragraph</a>

But ive tried your code and my code and they both work which is weird.

PK

Pavan
adding the additional id attribute, in addition to name did it. Thanks
Shane
thats fine no problem. Im glad this worked for you.
Pavan
A: 

use jquery or javscript , on form onload of the page B

zod
Forms don't have onload events, jQuery isn't an alternative to JavaScript, and use them to do what?
David Dorward
jquery is a javascript library. what ever you are doing using Javascript , you can do better by Jquery.
zod
Form dont have load event, thats fine. my mistake. i was just thinking about the page load. there is an event load in javascript. OK!
zod