A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: javascript open window

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    246
    hello...
    does anyone know how to make the javascript openwindow work on a mac? my code works on a pc but not a mac?

    its something like this:

    getURL ("javascriptpenwin('blah','blah'..);

    thanks...


    OR....can anyone give me some code to look at...i want to open a javascript window from my flash movie...also, how can i pass variables to this win?
    thnx

  2. #2
    Now listen heah! Mac8myPC's Avatar
    Join Date
    Aug 2000
    Location
    Steve Job's Doorstep
    Posts
    695
    Try this site, it's got some good info on JScript

    http://rummelplatz.uni-mannheim.de/~...art4/part4.htm

    see what that does for ya

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    I use a Mac and this works a treat for me;

    [script language="JAVASCRIPT" type="TEXT/JAVASCRIPT"][!--
    if(screen){
    topPos=0
    leftPos=0
    }
    function getPage(thePage,wt,ht){
    leftPos= (screen.width-wt)/2
    topPos = (screen.height-ht)/2
    newWin1 = window.open(thePage,'aWin','toolbars=no,resizeable =no,scrollbars=no,left='+leftPos+',top='+topPos+', width='+wt+',height='+ht)
    }
    // --]
    [/script]



    and yes, you can pass the arguments...

    ~mgb

    I've had to strip the html tags or it won't post...
    [Edited by mgb on 04-19-2001 at 03:11 PM]

  4. #4
    juggernart me2222's Avatar
    Join Date
    Jun 2000
    Posts
    1,322
    Hi spparikh,
    you´re probably trying to open a window in InternetExplorer4.5 on MAC. This will never work because of a bug.
    http://www.moock.org/webdesign/flash/macie/index.html

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