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

Two prob's, close a multi-framed window

Status
Not open for further replies.

wudz

Programmer
Mar 28, 2001
135
GB
My intro page calls a new multi-framed window (5) with js, how can I close this new window down using one of the frame windows without using the 'x', also is it poss to embed the js into the intro page movie, so as to do away with the html naff 'ENTER'.. new FLASHER!!!!
 
very simple...create a button and call it close or whatever. put these actions on it and it will close any window without having to use the "X":

on (release) {
getURL ("javascript:window.close()");
}

when used in a popup window it will close the window immediately.

If used in a regular browser window it will throw up an alert that says..."do you really want to close this window" or something to that effect.

take a look at my FAQ's on this subject:

faq250-704 (closing windows with javascript)
faq250-697 (How to create popup windows) very simple
Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Thanks Jeff, for your fast response, i will give it a whirl.I thought I had tried this already, but it was late, plus I am knocking on, finger tip misfunction...hi
OK about the intro prob, will take a look now..23.00hrs, late again..hi..Thanks again, John........
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top