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. Advertisements

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. Nazir
    Replies:
    3
    Views:
    4,100
    Nazir
    Nov 13, 2003
  2. raj
    Replies:
    8
    Views:
    828
    J. Baute
    Apr 9, 2004
  3. Manjit
    Replies:
    0
    Views:
    325
    Manjit
    Jul 25, 2003
  4. datactrl
    Replies:
    3
    Views:
    268
    Thomas 'PointedEars' Lahn
    May 29, 2004
  5. Mark
    Replies:
    2
    Views:
    235
  6. Replies:
    0
    Views:
    111
  7. sowen
    Replies:
    2
    Views:
    255
    Thomas 'PointedEars' Lahn
    Aug 8, 2007
  8. 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:
    178
    Dr J R Stockton
    Oct 16, 2007
Loading...