View Full Version : What can cause <body onload ... not to work?
05-30-2004, 07:49 PM
In a plain html-file i can write
<body onload="alert('Hello World!')">
but in my php-file it doesn´t work!
What can cause that?
05-31-2004, 02:10 AM
Please post the php code. I guess you use double and single quotes in the php string incorrectly.
06-01-2004, 04:03 PM
There could be a conflict if there are multiple onload listeners. Have a look at this article: Onload Conflicts (http://cross-browser.com/docs/onload_conflict.html)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.