GB_001 Posted December 28, 2010 Share Posted December 28, 2010 Hello, how would I go about capturing the page anchor in the address bar without the onload function and without page refresh? Thankyou, -GB. Link to comment https://forums.phpfreaks.com/topic/222783-catch-page-anchor-without-onload/ Share on other sites More sharing options...
ldb358 Posted December 28, 2010 Share Posted December 28, 2010 are you asking how you can get the url of the site? if so you would do that with: var url = location.href; Link to comment https://forums.phpfreaks.com/topic/222783-catch-page-anchor-without-onload/#findComment-1152009 Share on other sites More sharing options...
GB_001 Posted December 28, 2010 Author Share Posted December 28, 2010 Thankyou I figured it out. Link to comment https://forums.phpfreaks.com/topic/222783-catch-page-anchor-without-onload/#findComment-1152037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.