Skip to main content
April 16, 2014
Answered

block links in htmlLoader

  • April 16, 2014
  • 1 reply
  • 436 views

Hi,

I am using a facebook login on a kiosk system. Some links on the login page are leading to popup windows - like subscription of a new facebook account. Is there a way to block those links directly in the htmlLoader?

I tried to do a onClick handler on the document but with no success.

html.window.document.onclick = clickHandler;

This topic has been closed for replies.
Correct answer kglad

you should be able to traverse the links use html.window.document.getElementsByTagName('a')

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 16, 2014

you should be able to traverse the links use html.window.document.getElementsByTagName('a')

April 16, 2014

Yes thats it. Found out I can access even attributes, values and functions.