Msg#: 4422490 posted 2:23 am on Feb 28, 2012 (gmt 0)
I have a modal window that I'd like to make clickable - ie, the user clicks anywhere in the window and it takes them to the website....not just closes the window, but takes them to another website (the new one!) Even if they click the close button, it needs to redirect to the new. (I didn't invent this idea, I'm just trying to do what they asked!) Here's the test page.. [monarchcottages.com...]
I tried to make the page clickable - onClick="document.location.href='http://www.google.com';" in the body tag, then in the table tag, but no go.
Is there anything that can close the modal window AND redirect to the new site?
Msg#: 4422490 posted 2:40 pm on Feb 28, 2012 (gmt 0)
but it didn't work. Even added the link to the graphics but then it just loads the google.com website into the modal window frame itself, doesn't break out of the modal window at all...
Msg#: 4422490 posted 4:57 pm on Feb 28, 2012 (gmt 0)
Keep banging around at it, you've got the right tools and will get it. :-)
- Base window has code to open new (modal?) window. - New window opens. From that window set main window's location: window.opener.document.location - from the popup window, close (window.close() will close CURRENT window.)
Don't use inline event handlers, esp. on body (go ahead to get it working, but it's not needed.) Use something the users will understand and recognize: