This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Opening a web page in a new tab via Javascript button
#1
Hi,

I would like to open a web page in a new tab in browser when i click a button in LM visualization via Javascript.

Can you help me ?

Regards
Reply
#2
Set additional class to customlink, add this code to Custom JavaScript and modify the URL as needed:
Code:
$(function(){
  $('.customlink').off('vclick').on('vclick', function() {
    window.open('https://openrb.com');
  });
});
If you need several links like this then you will need to use different class names for each one and make a copy of the JS code.
Reply


Forum Jump: