How to set CreateLink command to make the linked page opened in another window.

Discussion in 'Javascript' started by Wootaek Choi, Dec 2, 2003.

  1. Wootaek Choi

    Wootaek Choi Guest

    Hi,
    I want to create a link dynamically with CreateLink command.
    like below..
    but the Problem is that the link is opened the same frame.
    is there any way to make the link be opened in another brower window?

    <HTML>
    <HEAD>
    <script language="javascript">
    function linktest(){
    document.selection.createRange().execCommand('CreateLink');
    }
    </script>
    </HEAD>

    <BODY>
    link test... new liked page should be opened in new window
    <a class='MIME' href="javascript:linktest()">linktest</a>
    </BODY>
    </HTML>
     
    Wootaek Choi, Dec 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. raj
    Replies:
    8
    Views:
    623
    J. Baute
    Apr 9, 2004
  2. Manjit
    Replies:
    0
    Views:
    238
    Manjit
    Jul 25, 2003
  3. datactrl
    Replies:
    3
    Views:
    161
    Thomas 'PointedEars' Lahn
    May 29, 2004
  4. Replies:
    0
    Views:
    71
  5. Superfox il Volpone

    Make a new Option object, from a different opened window

    Superfox il Volpone, Oct 14, 2007, in forum: Javascript
    Replies:
    8
    Views:
    102
    Dr J R Stockton
    Oct 16, 2007
Loading...

Share This Page