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)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum