Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Avid Listener
Posts: 17
Registered: ‎03-09-2010
Accepted Solution

Launch a new browser from SLX web

Hi,

 

SLX Web 7.5.1

 

I am trying to add a control to the Account Details form that the user will click on and it will navigate to a website in a new browser window or tab, the same as clicking on the WWW icon next to the URL control.  I do not want to use the URL control as I would like it just to be an icon (either an Icon button, an image etc). If I use the button control or the link control it just navigates the current browser to the new web page.

 

I suppose an easy way woul be to have a hidden URL control an invoke it from the click of the button but I can't see how to do this.

 

Thanks.

Highlighted
Nickel Contributor
Posts: 57
Registered: ‎03-18-2010

Re: Launch a new browser from SLX web

Hi,

 

You can use something like this in the load_action:

 

string url =Request.Url.ToString();

YourButtonControl.Attributes.Add("onclick", "window.open('" + url +"','','')");

 

See you

 

Libert Damien