Here it is: <script type="text/javascript"> var infolink_pid = 107467; var infolink_wsid = 0; </script> <script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script> Note: This is infolinks ad code. BTW, my site: planetcricket.tk
As I see we cannot handle the onclick function here "infolinks_main.js"? Links are generated by the info links system.
try target="_blank" or 456bereastreet.com/archive/200605/using_javascript_instead_of_target_to_open_new_windows/
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js" target="_blank"></script>
so this is the ad code that was given to you, and you want the ad to open in a new window so people don't navigate away from your site? I think change the hard code of the ad which usually can't be done by your. YOu can try target="_blank" but that usually work only with <a href="......>
I don't know what's the difference between an ad code and a regular code you code for a site. The only thing I know is that it's you can just do what these guys said. using target="_blank" as one of the attributes of your anchor tag will be much easier than using javascript. Plus, your link will be read by Search Engine crawlers.
I don not understand your code but i always make the link to open in new window by using the target="blank" in "a" tag...try it i, hope it will work...