Forum Moderators: phranque

Message Too Old, No Replies

iFrame

please help...

         

sidyadav

6:23 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(I'm a newbie to this)
Ok, I have a iFrame, in which, there are random ads displayed which I've chosen. It works good. But, when somebody goes to click on any one of those ads, they are re-directed to the website within the iFrame itself :(

I want it, so that whenever anyone clicks on any of those ads, they should be re-directed to the site which advertised in a new or the same browser window.

Just so it may help, heres my iFrame code:

<iframe marginwidth="0" marginheight="0" width="125" height="207" scrolling="no" frameborder="0" src="ads.php" name="I1"></iframe>

Any help would be most appreciated,
Sid

john_k

7:15 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to add a target attribute to your href: target="_top" OR target="_blank".

sidyadav

2:27 am on Mar 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok thanks. worked.

Sid