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

W

Wootaek Choi

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top