...

View Full Version : What can cause <body onload ... not to work?



temptraq
05-30-2004, 07:49 PM
Hi!

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?

glenngv
05-31-2004, 02:10 AM
Please post the php code. I guess you use double and single quotes in the php string incorrectly.

MikeFoster
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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum