I’m looking to execute a function when the a page is loaded with a certain hash in the url.
So if I visit www.mypage.com/hello.html#functionplease then the code will execute.
Can anyone point me in the right direction?
Any advice appreciated!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
substr(1) remove the # in hash.
Many functions? No problem!