Click to See Complete Forum and Search --> : Opening a frame link in a new window
rincewind
05-30-2003, 03:12 AM
Hi,
Is there a setting for the <iframe> tag to ensure that all links within the <iframe> open in a new window and the iframe remains unchanged automatically?
Thanks
Nevermore
05-30-2003, 03:13 AM
Try putting this in the head:
<base target="_blank">
rincewind
05-30-2003, 03:20 AM
no that did work, it still loads within the frame. I think I'll just use javascript. I thought the frame attrinute might be simpler.
Thanks anyway
Nevermore
05-30-2003, 03:39 AM
Works for me. You did put the code in the head of the iframe document, not it's container, didn't you?
rincewind
05-30-2003, 03:44 AM
i placed it in the head or the document containing the ifram but it's an asp document should that make the difference?
Nevermore
05-30-2003, 04:01 AM
You need to put it in the head of the document that is being loaded into the iframe.
rincewind
05-30-2003, 04:03 AM
oh, ok thanks, that's a good bit simpler,
Thanks