locbtran
08-21-2011, 12:21 PM
when a user click on a link, it would open a new window in HTML it is something like this:
<a href="http://google.com" target="_blank">click here</a>
How do I do this in Javascript? So a user would click on the link and it would open a new window. Here's my code
document.writeln('<tr><td>' + "http://google.com" + '</td></tr>');
I know window.open(url) would open a new window, but how do I make it clickable??
Any comments or suggestion would be greatly appreciated.
thanks
<a href="http://google.com" target="_blank">click here</a>
How do I do this in Javascript? So a user would click on the link and it would open a new window. Here's my code
document.writeln('<tr><td>' + "http://google.com" + '</td></tr>');
I know window.open(url) would open a new window, but how do I make it clickable??
Any comments or suggestion would be greatly appreciated.
thanks