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.

Open external link in new window
#3
I'm not sure if I understand what should I do.
I added

Code:
//external link opened in a new window
$('.kmb-1-external').off('vclick').on('vclick', function() {
 window.open('http://172.20.0.149');
})

into javascript

I added
kmb-1-external
into link's class

But the link is still opened in the same window.

The source of the control is
Code:
<div class="item item-control kmb-1-external" style="left: 907px; top: 196px; z-index: 60;">
  <div class="icon"><img style="width: 46px; height: 46px;" src="/scada/resources/icons/ecl_xL_O_odskok.svg?1489411752">
  </div>
</div>
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
Open external link in new window - by Thomas - 17.03.2017, 12:36
RE: Open external link in new window - by Thomas - 17.03.2017, 14:27

Forum Jump: