View Single Post
  #1 (permalink)  
Old 01-06-2007, 08:21 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,263
Credits: 0
Rep Power: 74
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default JavaScript: Opening 2 links with 1 Click

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:-

Code:
<SCRIPT LANGUAGE="JavaScript"> 

function DoubleOpen(site1, site2) { 
window.open(site1); 
window.location = site2; 
} 
</script>
and this goes into the body

Code:
<a href="javascript:DoubleOpen('site1', 'site2');">Click Here</a>
Example:-
Code:
<a href="javascript:DoubleOpen('http://www.codecall.net/', 'http://forum.codecall.net/');">Click Here</a>
Conclusion:-
As Always The Full Code Is Attached And Feedback Is Welcome!
Attached Files
File Type: zip DoubleOpen.zip (323 Bytes, 8 views)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote

Sponsored Links