Jump to content

OnClick to go to web page/URL


Startek

Recommended Posts

What is the best way to go to a web page when you click an element?

 

For example, it is common for a company logo to be displayed in a corner. In HTML you would just wrap a href around it. After extensive searching in the forum I found the following method, which does the job. Injecting JS in this way seems overkill but I guess is the only/best way?

UniSession.AddJS('window.location.href="http://mycompany.com";');
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...