-
…in reply to @MrAhmadAwais
MrAhmadAwais Possible answers: 1. Opening and closing <script> tags not present if it's embedded in HTML. 2. Better to use
document.querySelector("noscript")instead ofgetElementById.
document.querySelector("noscript") instead of getElementById.