Introduction:-
Well here I will show you how to open 2 links with just one click.
Solution:-
Here is the Code, insert this in the Head:-
and this goes into the bodyCode:<SCRIPT LANGUAGE="JavaScript"> function DoubleOpen(site1, site2) { window.open(site1); window.location = site2; } </script>
Example:-Code:<a href="javascript:DoubleOpen('site1', 'site2');">Click Here</a>
Conclusion:-Code:<a href="javascript:DoubleOpen('http://www.codecall.net/', 'http://forum.codecall.net/');">Click Here</a>
As Always The Full Code Is Attached And Feedback Is Welcome!
Nice, I think I will try to use this for IPB and make another window oen requesting unregistered members to sign-up.
I always think of uses for tutorials being posted here. I may not use all but maybe someone else can. Look at all replies I have made dude, most of them are alternates or uses.
Thanks!
Nice trick of parsing a couple of arguments to the function.
The code that I'v learnt now.Code:windows.location = xxx;
Thank you very much.
I used this code:
but it didn't work, please help what have i done wrong?HTML Code:<head> <SCRIPT LANGUAGE="JavaScript"> function DoubleOpen(site1, site2) { window.open(site1); window.location = site2; } </script> </head> <body> <a href="http://stats.justhost.com/track?c4d46e520aad528107f000dfd9c8d553d/', 'http://thepiratebay.org/torrent/6562848/');">Click Here</a> </body>
You are trying to open two links in the CURRENT window. That's just not possible. Try setting the target to new.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks