Re: Click link in embeded Object trigger parent window reload?
- From: "Mark Anderson" <mark@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 15:10:16 +0100
"d d" <no_spam@xxxxxxxxxx> wrote in message
news:f62krh$ftb$01$1@xxxxxxxxxxxxxxxxxxxx
Mark Anderson wrote:
"d d" <no_spam@xxxxxxxxxx> wrote in message
Is this what you're looking for ?Thanks. Having started out from a context of frames/iframes I'd
onclick="parent.location.href='http://example.com';"
headed down quite the wrong path.
However, it's not quite the solution - it works in Safari & Firefox
but IE (v6) loads the called page into the clicked <object>. Is this
an IE bug or is some conditional syntax needed for different UAs?
Mark
Hard to comment without seeing the code, but maybe
try using top.location.href instead.
~dd
Understood, here's a test page I've made it as simple as possible so as
to try and avoid side issues. I've added the onclick to the image in
the 'embedded' page. Code is validating XHTML 1.0 Strict.
Both top.location and parent.location work in Safari(v2), Firefox(v2
Mac/Win). IE6 persists in loading the resulting page back into the
calling object not the parent frame (...and you guessed, the main target
browser is IE <sigh>).
Regards
Mark
.
- References:
- Click link in embeded Object trigger parent window reload?
- From: Mark Anderson
- Re: Click link in embeded Object trigger parent window reload?
- From: d d
- Re: Click link in embeded Object trigger parent window reload?
- From: Mark Anderson
- Re: Click link in embeded Object trigger parent window reload?
- From: d d
- Click link in embeded Object trigger parent window reload?
- Prev by Date: Re: Function Format Question!
- Next by Date: Re: From Dwarak
- Previous by thread: Re: Click link in embeded Object trigger parent window reload?
- Next by thread: FAQ Topic - Why does 1+1 equal 11? or How do I convert a string to a number?
- Index(es):
Relevant Pages
|