Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Tutorials > Javascript

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Javascript Javascript Tutorials and Code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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,306
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 To view attachments in this forum your post count must be 1 or greater. You currently have 0 posts.
__________________

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



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-06-2007, 09:39 PM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Credits: 5
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

Nice, I think I will try to use this for IPB and make another window oen requesting unregistered members to sign-up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-07-2007, 03:32 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,306
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

Quote:
Originally Posted by xtraze View Post
Nice, I think I will try to use this for IPB and make another window oen requesting unregistered members to sign-up.
I'm happy that you found a use for this
__________________

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



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-08-2007, 01:43 AM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Credits: 5
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2007, 03:32 AM
AfTriX AfTriX is offline
Programming God
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 596
Credits: 0
Rep Power: 0
AfTriX is an unknown quantity at this point
Default

Thanks!
Nice trick of parsing a couple of arguments to the function.

Code:
windows.location = xxx;
The code that I'v learnt now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 08-08-2007, 05:55 PM
TheJun TheJun is offline
Newbie
 
Join Date: Aug 2007
Posts: 1
Credits: 0
Rep Power: 0
TheJun is on a distinguished road
Default

Thank you very much.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials 9 08-23-2008 03:22 PM
Does Google Penalize for too many inbound links Cleo8 Search Engine Optimization 6 04-23-2007 04:56 PM
Few High PR links vs. Several lower PR links Dan Search Engine Optimization 5 04-23-2007 04:44 PM
Javascript: Opening 2 (or more) links with 1 Click TcM Javascript 6 01-12-2007 03:26 AM
.Gov and .Edu links DevilsCharm Search Engine Optimization 3 08-23-2006 09:22 PM


All times are GMT -5. The time now is 04:55 PM.

Contest Stats

Xav ........ 1276.19
MeTh0Dz|Reb0rn ........ 1047.22
marwex89 ........ 869.98
morefood2001 ........ 868.04
John ........ 857.15
WingedPanther ........ 761.06
Brandon W ........ 684.87
chili5 ........ 294.12
dargueta ........ 192.86
Steve.L ........ 192.06

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 81%

Ads