Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to built a link to open in new tab

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-05-2009
Member
 
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.....????
Reply With Quote
  #2  
Old 20-05-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
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).
Reply With Quote
  #3  
Old 20-05-2009
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
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.
Reply With Quote
  #4  
Old 20-05-2009
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
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 }
Reply With Quote
  #5  
Old 20-05-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
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>
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to built a link to open in new tab"
Thread Thread Starter Forum Replies Last Post
To open a link from Google, I have to open in a new tab or window Bindaas-ER Technology & Internet 3 07-03-2011 04:02 AM
How to open link in new window using PHP Harmony60 Software Development 3 15-10-2009 12:06 AM
Unable to Open the Web Page Link pancham Windows Software 0 30-01-2009 06:36 PM
Can't open a link in new window in IE6 rupak Technology & Internet 3 12-01-2009 06:11 PM
Open every link in new tab with Firefox Quentin Windows Software 4 09-01-2009 11:03 PM


All times are GMT +5.5. The time now is 11:51 AM.