A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: javascript multiple pop up windows

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    oZz/uk
    Posts
    4

    javascript multiple pop up windows

    hello

    not strictly flash... but used for a f;ash page (hehe)

    ok: i've got a page that has an "onload" function to open.window to a specific size/position.

    works fine, but then i want to pop 2 windows up... what happens is that the 2nd window replaces the 1st window. (in the position of window 1, not specified position for window 2)

    what i'd like to know is how to pop up multiple windows using javascript... i've attached my source code if you wanna have a look.

    thanks for your time
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Austria
    Posts
    142
    The problem is that you reference both windows with the same name..

    try:

    Code:
    function spiral_cw()
    {
    mywindow=window.open("spiral_cw.htm","mywindow","width=320,height=240,top=200,left=200")
    }
    function spiral_ccw()
    {
    mywindow2=window.open("spiral_ccw.htm","mywindow2","width=320,height=240,top=200,left=250")
    }
    additional I would say more correct would be:
    Code:
    onload="spiral_cw(); spiral_ccw();"
    for the onLoad event.

    Have fun,

    Garf

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    oZz/uk
    Posts
    4
    thanks for that good little bit o knowledge.

    got it all working up and running at www.toomuchroom.info/v2

    s'funny how it all makes sense when you know what to do! been learnin javascript, actionscript and general coding.. thought it was about time.

    thanks again
    christiaan

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center