A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: open in new window command

  1. #1
    Junior Member
    Join Date
    Feb 2000
    Posts
    14

    Post

    Can anyone tell me how to spec the size of the new window.

    I can get a button to upen a url in a new window, but i want it fixed at 320 x 240 pxls

    I tried copying code from dreamweaver but had no joy

    thanks

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    20

    Post

    Take a look as this tutorial: http://www.moock.org/webdesign/flash...avascript.html

    That works!

    Waldo

  3. #3

    Cool

    add this script to the head of your html page:
    <script language="JavaScript">
    < !--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>

    then the button that opens the window has get URL, and put this in the url box:

    javascript:MM_openBrWindow('you url','name,'width=320,height=400')

    hope it helps!

  4. #4

    Post

    script for the header of the html page:
    <script language="JavaScript">
    < !--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>

  5. #5

    Post

    I'm sorry, i thing the java script i keep posting is becoming active on the page and not showing. here it is without complete tags! just add them in again when you paste it into your page!
    (<)script language="JavaScript">
    < !--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script(>)-remove those brackets!


  6. #6
    Junior Member
    Join Date
    Feb 2000
    Posts
    14

    Post

    thanks for all your help - i've fixed my problems

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