Thread: javascript

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    39
    Rep Power
    12

    Post javascript


    hello,i got a problem in setting time out to a pop up window, i tried to close the pop up window after 5 seconds, but the window still reamain not close. Is it because the pop up window is flash? please help. thanx.below is my coding :

    <SCRIPT LANGUAGE="JavaScript">
    <cfoutput>
    <cfif #check_login.recordcount# neq 0>

    var popurl="flash.cfm?stud_id=#client.login_id#"
    winpops = window.open(popurl,"","width=550,height=400",",left=0,top=0");
    setTimeout('self.close()',5000);
    </cfif>
    </cfoutput>
    </script>
  2. #2
  3. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1099
    Code:
    setTimeout('winpops.close()',5000);
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    39
    Rep Power
    12

    Smile


    thanx.it does solve my prob!!

IMN logo majestic logo threadwatch logo seochat tools logo