PDA

View Full Version : Targeting links // Javascript


Love*
10-16-2005, 10:00 AM
I got this script from here (http://javascript.internet.com/navigation/must-visit-sponsor.html)

It supposed to open two new pages with just one link. My question is, does somebody know how to make it so that the new pages will open automatically in iframes/frames that I target them to?

Like, is there a way to target the links?

here's the code:

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function adClick(ad, site) {
window.open(ad);
window.location = site;
}
// End -->
</script>
</HEAD>




<BODY>

<a href="javascript:adClick('http://www.sponsor.com/page.html', 'http://www.your-web-site-address-here.com/');">
Link here</a>



<!-- Script Size: 0.80 KB -->




thank you :)

felgall
10-16-2005, 10:52 PM
See http://javascript.about.com/library/blframe2.htm