Ohkay let's say I have code from google adsence that makes a banner ( or any other script like that maybe self made for my own website) Is it possible to make it so when that banner is clicked it redirects to two different places? Like I want to be able to click a link/banner and have it open up the website in that banner in the current window and then open up to a different link in another window. Is this possible!? Any ideas on how to make it happen?
I think you can. Like alot of sites have, when you click on something it opens a window to go to their place, but also open up the ads in the pop up. Let me see and find out.
yes - you can create an event handler with javascript to do that... something like: <a href="http://LINK1.com" onClick="popIt();" title="banner or whatever" target="_blank">BANNER</a> Code (markup): I'm a bit tired so it's sloppy but the point was made that it can be done... I'm sure @CSM or @radiant_luv will pop in with a solution for you Cheers!~
The example you provided would only redirect to one link though "link one" I need it to go to two places and I can't seem to find any example code on the interwebs! Anyone got some they'd be so kind to share?
No you are incorrect - the rough/sloppy and incomplete example I showed would be the trigger... LINK1 <== First link to open The event handler for popIt() would have the second link...
Hiya @WorkingSmart This should do OP? <a href="http://www.yahoo.com" onclick="window.open('http://www.google.com','newwin');">Click Here</a> Code (markup):
Hey there @radiant_luv Add target="_blank" so that both events pop a new window <a href="http://www.yahoo.com" onclick="window.open('http://www.google.com','newwin');" target="_blank">Click Here</a> Code (markup):