Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open and close windows

Status
Not open for further replies.

atferraz

Technical User
Aug 23, 2003
129
PT
Hello, need to do this for my log in:

The default opens with the flash logo and jumps to login.asp. The user logs and if authenticate another window is open with no menus and all that stuff. (want a controlled and fixed properties window for this application). At the same time the parent window should be closed. (Only if authenticated).

Thanks.
 
Your function should look like this:

Code:
function openAndClose() {
    var win_props = 'height=400';
    win_props += ',width=400';
    win_props += ',left=0';
    win_props += ',top=0';
    win_props += ',location=yes';
    win_props += ',menubar=yes';
    win_props += ',resizable=yes';
    win_props += ',scrollbars=yes';
    win_props += ',status=yes';
    win_props += ',toolbar=yes';

    // open the window
    var popup_win = window.open('page.html', 'my_win', win_props);
    // close this window
    window.close();
}

To set any of those properties off, just replace "yes" with "no".

*cLFlaVA
----------------------------
When will I be able to see what other members can see about myself? It's been like, a freakin' month already!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top