Re: Click link in embeded Object trigger parent window reload?
- From: d d <no_spam@xxxxxxxxxx>
- Date: Fri, 29 Jun 2007 01:01:07 +0200
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
.
- Follow-Ups:
- Re: Click link in embeded Object trigger parent window reload?
- From: Mark Anderson
- Re: Click link in embeded Object trigger parent window reload?
- References:
- Click link in embeded Object trigger parent window reload?
- From: Mark Anderson
- Click link in embeded Object trigger parent window reload?
- Prev by Date: FAQ Topic - Why does 1+1 equal 11? or How do I convert a string to a number?
- Next by Date: _hblink ?
- Previous by thread: Click link in embeded Object trigger parent window reload?
- Next by thread: Re: Click link in embeded Object trigger parent window reload?
- Index(es):