If I send a header() using PHP to javascript via AJAX which then writes the output using document.write, will that initiate the javascript onload function if document.write writes the entire page? I need it to initiate
Share
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.
The real question is whether
document.writeafter the initial DOM has loaded will re-call the document’sonLoadfunction.It’s trivially testable, and the answer is “no”: