thecard Posted November 28, 2008 Share Posted November 28, 2008 I want to be able to pass values after the # in a URL like: www.whatever.com#variablevalue Thanks. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted November 29, 2008 Share Posted November 29, 2008 can you elaborate? are you saying you want javascript to be able to read the # info from the url? you have to parse it out of the window.location.href Quote Link to comment Share on other sites More sharing options...
xtopolis Posted November 29, 2008 Share Posted November 29, 2008 It refers to page anchors. Page anchors appear within the page as method of scrolling the browser to that point. [when available] www.page.com/#main <a name="main"> </a> Quote Link to comment Share on other sites More sharing options...
thecard Posted November 29, 2008 Author Share Posted November 29, 2008 Thanks, that all makes sense. Dunno why I didn't think of that before. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 29, 2008 Share Posted November 29, 2008 window.location.hash gives you the stuff only after # if I remember correctly. Quote Link to comment Share on other sites More sharing options...
thecard Posted November 29, 2008 Author Share Posted November 29, 2008 Oooo nice. Should save me time although I already did it all with substr . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.