Search Buster Directory Forums  

Go Back   Search Buster Directory Forums > Design and Development > Programming > Javascript

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2007, 11:49 PM
tcm9669 tcm9669 is offline
Member
 
Join Date: Jan 2007
Posts: 151
Rep Power: 27
tcm9669 is on a distinguished road
Default 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.searchbuster.org/', 'http://www.searchbuster.org/forum');">Click Here</a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-23-2007, 11:57 PM
ganeshn11 ganeshn11 is offline
Junior Member
 
Join Date: Jan 2007
Posts: 39
Rep Power: 24
ganeshn11 is on a distinguished road
Default

Had never even imagined such thing could be done. Or have I...?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-17-2007, 05:29 AM
qaswer qaswer is offline
Member
 
Join Date: Jan 2007
Posts: 50
Rep Power: 26
qaswer is on a distinguished road
Default report 16-02-07

<SCRIPT LANGUAGE="JavaScript">

function DoubleOpen(site1, site2) {
window.open(site1);
window.location = site2;
}
</script>
so it is an implementation of a function which take two url's as arguments and return two windows with two different url's . Nice code and nice example .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +9. The time now is 08:35 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
vB Ad Management by =RedTyger=