Forum Moderators: phranque
that is my code please review. a window will pop up with a close button in the upper left. the page uses frames. _top is the target of the action.the window closes in everything but IE on the Mac.
why?
[edited by: briandangbob at 8:42 pm (utc) on June 24, 2003]
I wonder if this has something to do with the target="_top"? Is this there for a specific reason? If not, try removing it and see if it makes a difference.
Also, personal URL drops are against the TOS [webmasterworld.com]. You should consider taking it out or wait for a mod to do it!
yes _top is there for a reason. the page uses forms _top is the target of the action. with out it, it would not close anything. as you may know _top refers to the outermost frameset of the current doc. i have tried all sorts of targets no targets ect... nothing seems to work in IE on a Mac. I am stumped.
the page uses forms _top is the target of the action. with out it, it would not close anything. as you may know _top refers to the outermost frameset of the current doc.
Do you mind if we revisit this? Your page has a form on it? But, clicking on the close button does nothing to the form. It merely closes the window - no form submission takes place unless explicitly stated (by document.form.submit).
You say that without it it would not close anything? Why so? I'm assuming that the page containing the close button code is part of a frameset. Ok, then using window.close() should work - it tells the page to close the entire window. Or, you could use document.parent.close() - telling the document to close it's parent: the frameset.
_top is an html target attribute and not a JavaScript one. I think you should look at the window or parent option and remove the target="_top".
HTH