Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 3.43 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-22-2002, 10:40 PM   PM User | #1
the kilted scot
New to the CF scene

 
Join Date: Jun 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
the kilted scot is an unknown quantity at this point
hyperlinks

hey guys,

How do i set a up hyperlinks in javascript, not just to a page but to a specific point within a page.

Thanks folks..

G
the kilted scot is offline   Reply With Quote
Old 06-22-2002, 11:10 PM   PM User | #2
TrueLies
New Coder

 
Join Date: Jun 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
TrueLies is an unknown quantity at this point
Hi

the safer way is still to put an anchor just at the point you want to intercept, by html:

<body bla bla...>

here is my point <a name="foo"> bla bla</a> that's an anchor: a with a name, no source property

then the javaScript instruction might be:

location="#foo";

note the #

ciao
__________________
Alberto http://www.unitedscripters.com/
TrueLies is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 AM.


Advertisement
Log in to turn off these ads.