Forum Moderators: coopster

Message Too Old, No Replies

Link in a new window

         

sfast

5:30 am on Jun 15, 2007 (gmt 0)

10+ Year Member



I am trying to open this link as a new window by TARGET="_blank". But the link opens in the same window.

Why wont it open in a new window?

echo '<td width="7%" height="22" ><div align="center"><span class="textGrey"><a href= "reportLocDetails.php?efinno='.$efin_no.'" TARGET="_blank" >'. $efin_no. '</a></span></div></td>' ;

phparion

5:59 am on Jun 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i dont see any problem with sing and double quotes... can you check your source code of the page to see the actual html made up from php to generate this link? you might have something missing in the structure like no space between target and href end.

also check your browser allows pop ups.

sfast

4:51 pm on Jun 15, 2007 (gmt 0)

10+ Year Member



I works on my laptop and not on the hosting website.

When I tried to view source on hosting website, it does not show target="_blank

LifeinAsia

5:13 pm on Jun 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It sounds like either:
A) your host doesn't have the updated file, or
B) you're getting a cached version of the page

Verify that you've uploaded the updated fiel to your host, then clear the cache in your browser. (And make sure you're accessing the site directly and not going through a proxy.)