Results 1 to 5 of 5

Thread: How to built a link to open in new tab

  1. #1
    Join Date
    Apr 2009
    Posts
    28

    How to built a link to open in new tab

    I am making a website in which consumer has to visit many pages & again to go back to view some previous page so i want the link to be build in such a way that it opens in another tab. But the problem is that i don't know the source code for it .....!

    Can anyone Help with this.....????

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: How to built a link to open in new tab

    This will open the link in a new blank window You might use (a href="url" target="_blank")(/a).

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to built a link to open in new tab

    I think that this mainly concerns the user settings of firefox to. Here are some targets:

    Code:
    _blank
    
    _parent
    
    _self
    
    _top
    Most likely the more browser wants open, _blank in A new tab. I to emergency sure but maybe _new exists as waves.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to built a link to open in new tab

    If a user wanted to have new windows open in new labels in place, it could use the following style sheet user to do so:

    Code:
    * { target-new: tab ! important }

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: How to built a link to open in new tab

    Try this code it is secure code :

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function foo(elem, evt){
    /*alert(
    [
    "elem : " + elem.nodeName,
    "shiftKey : " + evt.shiftKey,
    "keyCode : " + evt.keyCode
    ].join("\n")
    );
    */
    
    evt.ctrlKey=true;
    evt.keyCode=17;
    event.srcElement.fireEvent("onclick",evt);
    
    }
    </script>
    
    </head>
    <body>
    <A href="#" onclick="foo(this, event)" onkeypress="foo(this, event)">test</A>
    </body>
    </html>

Similar Threads

  1. To open a link from Google, I have to open in a new tab or window
    By Bindaas-ER in forum Technology & Internet
    Replies: 3
    Last Post: 07-03-2011, 04:02 AM
  2. open link in new tab html code
    By bigboy in forum Software Development
    Replies: 4
    Last Post: 16-12-2009, 03:24 PM
  3. How to open link in new window using PHP
    By Harmony60 in forum Software Development
    Replies: 3
    Last Post: 14-10-2009, 11:06 PM
  4. Can't open a link in new window in IE6
    By rupak in forum Technology & Internet
    Replies: 3
    Last Post: 12-01-2009, 06:11 PM
  5. Open every link in new tab with Firefox
    By Quentin in forum Windows Software
    Replies: 4
    Last Post: 09-01-2009, 11:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,142,071.27960 seconds with 16 queries