vozzek Posted October 11, 2008 Share Posted October 11, 2008 Hi all, Simple question: can I pass a parameter to a page with a location anchor tag? For example... page1.php#birds - takes the user to page1.php at the anchor tag named 'birds'. Works fine. page1.php?userid=1001 - takes the user to page1.php and passes a parameter called 'userid' with a value of 1001. Works fine. page1.php#birds?userid=1001 - SHOULD take the user to page1.php at the anchor named 'birds' and bring the userid parameter over with a value of 1001. DOESN'T WORK. It loads the page and passes the parameter, but the page is loaded at the top, and not at the 'birds' anchor location. Any way to do this? Thanks in advance for the help. Quote Link to comment Share on other sites More sharing options...
vozzek Posted October 11, 2008 Author Share Posted October 11, 2008 Hehe, nevermind - I figured it out. You have to move the #name and append it after the parameter. So basically... page1.php?userid=1001#birds Thanks though! 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.