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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close window 1

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
I have tried the following to close a window. but it does not work! the window is sized in java, does this matter?

on (release) {
getURL ("javascript:Window.close;void(0);");
}
 
Try:

Code:
on (release) {
    getURL ("javascript:window.close();");
}
 
thanks for that, i did that first and added the void since it whited out the other pages, but neither works?

any other ideas?
 
I just tried that method and it works.

How are you opening the window? You have the action on a button, right?
 
yes, the button is opened with javascript

on (press) {
getURL ("javascript:NewWindow=window.open('japanese.html', 'blaupop', 'scrollbars=yes,status=no,width=580,height=950');NewWindow.focus();void(0);");
}
 
that was weird, i had a longer posting...this is really weird...

on (release) {
getURL ("javascript:self.close() ");
}
this is the button to close the window. i finally figured it all out. thanks again, disfasia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top