Forum Moderators: open

Message Too Old, No Replies

Overriding iframe Target= blank

how do i override the target tag from a parent document

         

Kolbrin

9:35 pm on Sep 16, 2006 (gmt 0)

10+ Year Member



I have a page containing an iframe again containing a remotely hosted guestbook page. Some of the links in the guestbook has <TARGET="_blank"> attached to them, and I want all TARGET="_blank" to become TARGET="_parent" or TARGET="_top". Can anyone help me? I want untargeted links to load inside the iframe like it is, only the TARGET="_blank" should load in the parent window. I hope someone can help me.

YS
Marius

[edited by: jatar_k at 10:36 pm (utc) on Sep. 16, 2006]
[edit reason] no urls thanks [/edit]

daveVk

12:55 am on Sep 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the iframe source is from a differnt domain than main page, security will prevent you from doing this, as I think you need to change iframe content.

Kolbrin

9:21 am on Sep 17, 2006 (gmt 0)

10+ Year Member



I know, but I thought one could override it with JavaScript, to disable the target=_blank attribute.