SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Edinburgh, UK
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript onload not working IE7 localhost

    Any of you smartypants know why my javascript onload function (inside the body tag) is not working (alert pop up box). Using localhost as server and no my pop ups are not blocked

    Oh happy day's

  2. #2
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by serecarteren View Post
    Any of you smartypants know why my javascript onload function (inside the body tag) is not working (alert pop up box). Using localhost as server and no my pop ups are not blocked

    Oh happy day's
    If you mean this:
    Code:
    <body onload="alert('Hi')" >
    then maybe scripting is disabled for that zone.
    Are you saying that it does work from a remote server?
    Any console errors (that little yellow triangle at the bottom left)?
    Tab-indentation is a crime against humanity.

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Edinburgh, UK
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you have come up trumps again thanks logic ali, script was OFFFFFF


Bookmarks

Posting Permissions

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