Jump to content

link to a new browser


inungh

Recommended Posts

I have following code to go to a link when user click on the button, the browser stay in the same Window, I would like to open a new Windows, I tried to add target = _blank, but no luck,

 

Your help and information is great appreciated,

 

 

Regards,

 

 

Iccsi

 

<a href="javascript:void(0)" id="aButton" onclick="javascript:window.location.href=GetLink();">My Link</a> function GetLink() { var url= "MySite.cfm?MyValue="+ document.Myform.MyText.value; return url; };

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...