HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2003, 06:23 PM
paCkeTroUTer paCkeTroUTer is offline
Gone PHP Crazy
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 393 paCkeTroUTer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 33 sec
Reputation Power: 11
Send a message via ICQ to paCkeTroUTer
Window.location.hash ?

I got an input box of type button through which I run a javascript function. In the function I want to call some code which will get the scroll bars of the current window to scroll up to the very top to an anchor I have. I have the anchor named as follows:

Code:
<a name="top">Perception Questionnaire</a>


and in the javascript function I have the following code:
Code:
window.location.hash=top;

The above code I obtained by grasping some code as shown here: http://devedge.netscape.com/library...nce/anchor.html

But unfortunately my attempts with my code are not successful. Anyone know how to reference the anchor within the same window and able to send the location of the window to the achor. Thanks

Jeffery
__________________
visit http://www.techsatcomputers.com

Reply With Quote
  #2  
Old November 30th, 2003, 06:34 AM
magma's Avatar
magma magma is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Italy, EU
Posts: 517 magma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 45 m 8 sec
Reputation Power: 11
I'm not sure it will work, but have you tried to use a string for the assignment?

window.location.hash="top";
or
this.location.hash="top";

Hope this helps!
__________________
Cheers, Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Window.location.hash ?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap