|close a window and target the window behind in one link?|
| 10:41 pm on Jun 18, 2003 (gmt 0)|
<sorry, no links to personal examples>
when you click a link, a new window pops up, and when you click "front cover" the window closes. well, I would like the window to close, AND target the window behind to go to the main page, or open a new window with the main page on it. (in case someone had left the main page, or closed the window)
[edited by: tedster at 1:09 am (utc) on June 19, 2003]
| 11:10 pm on Jun 18, 2003 (gmt 0)|
No URLs or specifics are allowed. You'll need to owner edit or the Mods will. Why have you got so many windows oopening. Sites that open windows on every link drive me nuts.
In the new window, you'll need to add an onclick event handler to the link, something like
open('anypage','',[your featurelist here]);
that should do it.
| 2:31 am on Jun 19, 2003 (gmt 0)|
there is a cover page, and when you click the cover page, the main page opens in a small, contained window with no buttons, location or resize options etc... it doesn't open a lot of windows. only one.
anyway, if the user wants to go back to the main page for any reason, then the pop-up would need to close, and the main browser window behind should go to the index page (if it isn't there already.
as for opening a new window... that is only if they accidentally or purposely closed the main browser window. Clicking "cover page" would have to open a new window and go to the index.
I'll give the code a try. Thanks!