Re: Click link in embeded Object trigger parent window reload?



Mark Anderson wrote:
Hi. I've had to turn an IFrame-embedded page into a an Object using the data attribute to hold the page to meet XHTML STRICT validation. The <object>'s embedded page is a query URL returning a basic HTML page to hold an <a> link enclosing a thumbnail of a latest added record in a picture database. So far, so good.

What I need is that clicking the embedded image/link causes the parent page to load a new URL. What syntax do I use to refer to the 'parent' page rather than the page actually containing the <a> link.

Actually I could probably us the thumbnail <img>'s onclick event rather than an enclosing <a> link but the same syntax problem arises. Sorry, no URL to show as the page in on an intranet (which is also the eventual deployment scenario - with a mind to security issues, etc.)
TIA
Mark

Is this what you're looking for ?

onclick="parent.location.href='http://example.com';"

~dd
.