dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Opening a new window with javascript

  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    45

    Opening a new window with javascript

    Hi,

    I have a projector file on a disc which uses the code:

    getURL("javascript:NewWindow=window.open('index.ht m','MDF','width=800,height=600,left=0,top=0,toolba r=No,menubar=No,location=No,scrollbars=No,status=N o,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");

    in the first frame to open a html file in the same directory.

    For some reason, when i use this code, it loops and creates an infinate amount of windows until I kill the program! However, if i substitue 'index.htm' for an absolute path, ie: http://www.sldtyhs.com, it works fine!

    Does anybody know any way around this?

    Cheers

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    RUSSIA
    Posts
    46
    getURL("javascriptbjectName=window.open(\"images/gr4.jpg\",\"sample\",\'width=360,height=490,scroll bars=no,resizable=no,top=10,left=10\');void(0);", "");
    AAANET

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    RUSSIA
    Posts
    46
    if i correct understand you
    AAANET

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