Please help me about function window open

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please help me about function window open

    I have function wndw open auto close wndow 10second. .

    <script type="text/javascript">
    function PopWin(urlName) {
    var popup = window.open(urlName, "",'width=80,height=100');
    setTimeout(function(){
    popup.close();
    window.location="admin.php"
    }
    ,10000)
    }
    </script>
    <body onload="javascript:PopWin('forum.php">

    can you help me to make any windows open. .
    I want make more than one windows open. .please share to me. .

    #2
    PHP Code:
    <script type="text/javascript">
    function 
    PopOpen(url1,url2,url3) {
    window.open(url1,'name','height=200,width=150');
    window.open(url2,'name','height=200,width=150');
    window.open(url3,'name','height=200,width=150');
    }
    </
    script>
    <
    body onload="PopOpen('forum.php','http://google.com','index.php')"

    Comment


      #3
      Thx bro. . .but how to add function auto close windows open?

      Comment


        #4
        Originally posted by eyuswap View Post
        Thx bro. . .but how to add function auto close windows open?
        Define var than close it like this myvarname.close();take a look on your first code to open window
        This is ten percent luck, twenty percent skill
        Fifteen percent concentrated power of will
        Five percent pleasure, fifty percent pain

        And a hundred percent reason to remember the name!

        Comment

        Working...
        X