Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bookmarks

Status
Not open for further replies.

ChrisBelzona

Programmer
Oct 25, 2000
137
GB
I have the following problem and wonder if anyone can help!The bottom line is a need some code that when an If statement hits a true statement the page jumps to a bookmark on the page. I know the if statement works I just need the code that jumps to the bookmark.

More info
Its on a very complicted asp form page for which there are 4 buttons which submit the first value, my If statement then finds a value and should jump to a bookmark on the page without the user having to click.

Any help would be gratefully received.

Chris
 
Hi,

Let me see if I understand: on client side you want some if statement running in client side script (VBA, JavaScript) activated by a submit button or something will jump to a bookmark on de page.
The bookmark is made by using
Code:
<a name=JumpHere>
in your &quot;HTML&quot; code, this part is easy.
Now in a JavaScript function activated by a click you should add, after the if statement,
Code:
document.location.href=&quot;#JumpHere&quot;
Hope this help!

Regards,
Luís Silva
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top