Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: Javascript new tab

  1. #1

    Javascript new tab

    How do i set my links to open in new tabs and windows?

  2. #2
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    target="_new" in your <a> tag will give you a new window. I'm not sure how it works with tabbed browsing, though.

  3. #3
    any way to do it to more than one at once?

  4. #4
    Junior Member
    Join Date
    Jul 2005
    Posts
    2

    Javascript new tab

    You would have to use javascript to open two or more windows;

    <script language="JavaScript">
    <!--
    function newWindows() {
    win1=window.open('http://www.webproworld.com','win1','status=1,scrollbars=1 ,toolbar=1,resizable=1,width=800,height=600');
    win2=window.open('http://www.google.com','win2','status=1,scrollbars=1,tool bar=1,resizable=1,width=800,height=600');
    }
    //-->
    </script>

    Then in your link;

    New Windows

  5. #5

Similar Threads

  1. JavaScript Uses
    By jimmy03 in forum Search Engine Optimization Forum
    Replies: 2
    Last Post: 05-26-2009, 02:50 PM
  2. AJAX and javascript calling javascript
    By krnl in forum Web Programming Discussion Forum
    Replies: 14
    Last Post: 11-18-2007, 10:00 AM
  3. XP SP2, IE and Javascript
    By ChrisBowd in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 08-26-2004, 07:23 AM
  4. Javascript and php
    By icb01co2 in forum Web Programming Discussion Forum
    Replies: 1
    Last Post: 08-09-2004, 10:25 AM
  5. JavaScript Help
    By Dragonsi in forum Web Programming Discussion Forum
    Replies: 12
    Last Post: 05-29-2004, 04:30 AM

Posting Permissions

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