0

When I try to replace the whole html document using js, this work causes the page's javascript events to not work. When I put

document.documentElement.innerHTML = document.documentElement.innerHTML.replace(/\(\+93\)/g, "(+93)");

In the Console then javascript events and triggers dont work.
Actually I see a line of alert in the Firefox's Console:

The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.

How can I get around this problem?

Paullo
  • 2,038
  • 4
  • 25
  • 50
UltraDEVV
  • 197
  • 1
  • 11

0 Answers0