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?
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...
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: