Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Location
    Stockholm
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What can cause <body onload ... not to work?

    Hi!

    In a plain html-file i can write
    Code:
    <body onload="alert('Hello World!')">
    but in my php-file it doesn´t work!

    What can cause that?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Please post the php code. I guess you use double and single quotes in the php string incorrectly.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder
    Join Date
    May 2004
    Location
    Alabama, USA
    Posts
    237
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There could be a conflict if there are multiple onload listeners. Have a look at this article: Onload Conflicts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •