I have a simple question but its haunting me since many days and I couldn’t find the solution.
I would like to fire a JavaScript event for every time the page is loaded or rendered.
Can any body please help?
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.
Try using this:
Although the best way would probably be to use jQuery’s
ready()function to ensure browser compatibility.