Link to 2 pages

Is there a why to make a hyperlink sending you to two pages, like one site on your page and another site in a new page using one link?

Comments

  • : Is there a why to make a hyperlink sending you to two pages, like one site on your page and another site in a new page using one link?
    :
    Yes there are lots of ways.
    Here's one. The first url "mypage.html" gets opened in the current frame and the second url "http://www.programmersheaven.com" is opened in a new window.
    [code]



    function duolink( local_url, other_url ) {
    location.href = local_url;
    window.open( other_url, "_blank" );
    };



    2 links


    [/code]
  • Ok, Thanks for the example.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories