+ Reply to Thread
Results 1 to 7 of 7

Thread: Javascript: Opening 2 (or more) links with 1 Click

  1. #1
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Javascript: Opening 2 (or more) links with 1 Click

    Introduction:-
    Here I will show you how to open one, two, three, four etc... links with one click!

    Let's Code:-
    Make this code between the HEAD tags:-

    Code:
    <script language="javascript">
    
    function OpenAllLinks() {
    window.open("http://www.site1.com")
    window.open("http://www.site2.com")
    window.open("http://www.site3.com")
    window.open("http://www.site4.com")
    window.open("http://www.site5.com")
    window.open("http://www.site6.com")
    }
    
    </script>
    and this into the BODY tags:-
    Code:
    <a href="javascript:OpenAllLinks()">Open the links</a>
    Explanation:-

    Code:
    function OpenAllLinks() {
    window.open("http://www.site1.com")
    window.open("http://www.site2.com")
    window.open("http://www.site3.com")
    window.open("http://www.site4.com")
    window.open("http://www.site5.com")
    window.open("http://www.site6.com")
    }
    Here you can include all your links!

    Conclusion:-
    Source code is attached, and feedback welcome
    Attached Files
    Last edited by TcM; 01-06-2007 at 11:38 AM.

  2. #2
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,075
    Blog Entries
    9
    lol great trick good job
    Get A Cheap Top Level Domain, COM and NET domains only for $7.95 - Get Yours Now!
    Trill Hosting - Cheap SSL, Cheap Web Hosting, Register Cheap Domains, Cheap Blog Hosting
    www.trillhosting.com | support@trillhosting.com
    Hosting Plans | Write To Us | Support | Client Area | About Us

    CodeCall Blog | CodeCall Wiki

  3. #3
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    Thanks welcome

  4. #4
    Programming God xtraze is an unknown quantity at this point
    Join Date
    Dec 2006
    Location
    Sri lanka
    Posts
    908
    But are these opened as popups, as people (including myself) block them lol.
    And maybe a bug can be created by this. can make people without tabbed browsing mad., lol. Just a joke. Read again if you can't understand.

  5. #5
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    Yes I understood! Something like Internet Explorer 6 rotfl, well but there may be more useful way of utilizing this

  6. #6
    Programming God xtraze is an unknown quantity at this point
    Join Date
    Dec 2006
    Location
    Sri lanka
    Posts
    908
    The thing I mentioned is complete useless, lol. It's just a joke to make the Browser or maybe the whole Computer Crash. Maybe this can be used when some one want 3-5 different files to be downloaded, if those files are available somwhere, we can have use of this script if we don't like to re-upload those files in our web server.

    I know this is not needed, but I think if we did find a need of this, we may come to codecall.

  7. #7
    Programming God AfTriX is on a distinguished road
    Join Date
    Jan 2007
    Location
    Chicago
    Posts
    586
    Nice work with the Function, we can use to pop-up something when the user clicks download or something..

    Simply Cool..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Does Google Penalize for too many inbound links
    By Cleo8 in forum Search Engine Optimization
    Replies: 8
    Last Post: 03-01-2010, 12:28 AM
  2. Few High PR links vs. Several lower PR links
    By Dan in forum Search Engine Optimization
    Replies: 11
    Last Post: 12-22-2008, 06:44 PM
  3. Windows XP Tricks & Tips!!!!..new ones.
    By pranky in forum Tutorials
    Replies: 9
    Last Post: 08-23-2008, 03:22 PM
  4. JavaScript: Opening 2 links with 1 Click
    By TcM in forum Javascript
    Replies: 5
    Last Post: 08-08-2007, 05:55 PM
  5. .Gov and .Edu links
    By DevilsCharm in forum Search Engine Optimization
    Replies: 3
    Last Post: 08-23-2006, 09:22 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts