www.webdeveloper.com
Results 1 to 2 of 2

Thread: Opening multiple windows in one

Hybrid View

  1. #1
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    2

    Question Opening multiple windows in one

    I know this sounds dumb.. but what Im trying to do isn't for an actual web page. There is many functions I want to make with little effort.
    I want to perform many webpage link functions one after another, all on one page. So this is what I am looking for:
    i.e.

    1. open an html file that will open a page, loggin if required.
    2. perform an action
    3. perform second action
    4. log onto another account
    5. perform an action.... etc.

    I have tried this with batch files... much of it takes longer than I have in a day. I tried javascript, I end up loading all windows at one time. I need these steps performed one after another, that is my problem at the moment.

    This is an example of what I have now. But like I stated above. They all open at one time. Any help is appretiated


    <BODY>

    <a href='#' onclick='openWindows()'>click me</a>


    </BODY>

    </HTML>


    <script language="Javascript">

    function openWindows()
    {
    window.open("http://www.msn.com","window1", "");
    window.open("http://www.yahoo.com","window2", "");
    window.open("http://www.google.ca","window3", "");
    }

    </script>
    Chaos and dissorder... my work here is done.

  2. #2
    Join Date
    Nov 2002
    Posts
    421
    If you want the new windows to "replace" each other while having one page in control try using frames. You can have the main frame replace the target frame with what ever window you want while you maintain control in the main frame.

    Very different from just a bunch fo window opens.

    But it is not clear what you want to do - so just offering thoughts.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles