View Full Version : What can cause <body onload ... not to work?
05-30-2004, 06: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, 01:10 AM
Please post the php code. I guess you use double and single quotes in the php string incorrectly.
06-01-2004, 03: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 © 2016 vBulletin Solutions, Inc. All rights reserved.