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.....????
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).
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.
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 }
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>