Wednesday, July 28, 2010

How to Open links in New Tab of browser with Javascript?

 Could it possibly be as simple as this?

form = document.createElement("form");
form.method = "GET";
form.action = "http://tctshare.com/index.php";
form.target = "_blank";
document.body.appendChild(form);
form.submit();

Success to you :D

No comments:

Post a Comment