Welcome visitor
* Login
* Register
It is currently January 24th, 2019, 10:41 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  href="#........." with javascript
PostPosted: May 6th, 2009, 9:08 pm 

Posts: 31
Hi, i have a question and i think javascript has the answer but i dont know. I know the href="#....." but this reloads the page to then go to the destination, is there a way on javascript to scroll to the #area without reloading the page?


Top
 Profile  
 
  Re: href="#........." with javascript
PostPosted: May 6th, 2009, 10:23 pm 
User avatar

Posts: 136
<a href="" onclick="window.location.hash = 'your name'; return false;">the link</a>

this works for
<a name="your name">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron