Can a single text link point to two different web pages?
Can a single text link point to two different web pages?
yes,it can be done by using this code <a href=”http://www.xyz.com” on click=”window.open(‘http://www.abc.com’);return true;”>two links </a>
It is not possible with pure HTML. You should write javascript function for that.
For example
function doubleopener(){window.open("smth"); document.location="smth";}
then to put it to a link
<a href="javascript://" onclick="doubleopener()">link</a>
|
Bookmarks