Home > Article > Web Front-end > Why does the system prompt that there is no permission? ? ? _html/css_WEB-ITnose
The code is as follows:
<script type="text/javascript" src="../tools/out.js"></script> <script type="text/javascript"> function getNodeDemo () { var divNode = document.getElementById("divID"); println(divNode); // alert(divNode.nodeType+":"+divNode.nodeValue+":"+divNode.nodeName); var text = divNode.innerHTML; alert(text); } </script>
Just use Firefox.
The corresponding line number is 10, not 17.
Convinced, the first time I listen: var text = divNode.innerHTML; it will prompt a permission issue