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



"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 ?
onclick="parent.location.href='http://example.com';"
Thanks. Having started out from a context of frames/iframes I'd
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


.



Relevant Pages

  • Re: Not Loading to Desktop
    ... You might try a bootlog (safe mode option menu) to see what loads last before the stop. ... "Mark L. Ferguson" wrote: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Looking for newsreader like OE
    ... The 'mark as read' etc., options are a poor substitute for Delete IMO. ... Firefox is not a newsreader, ... strong filtering abilities. ...
    (alt.os.linux)
  • Re: Looking for newsreader like OE
    ... The 'mark as read' etc., options are a poor substitute for Delete ... > Firefox is not a newsreader, ... > strong filtering abilities. ...
    (alt.os.linux)
  • Re: Looking for newsreader like OE
    ... >>>I am using Firefox on Suse 10, but you can't right click and Delete ... The 'mark as read' etc., options are a poor substitute for Delete ... >>>Can anyone suggest a newsreader that downloads the threads like in OE ... >> I never heard of the Firefox newsreader, ...
    (alt.os.linux)
  • Re: OK, Im stumped
    ... Have an intel Mac Pro using 10.4.10 with Firefox 2.0.0.4. ... It used to work fine but now just a question mark. ... I've reinstalled Quicktime and that didn't change the problem. ... email to oshea dot j dot j at gmail dot com. ...
    (comp.sys.mac.system)