Home > Web Front-end > HTML Tutorial > Why does the system prompt that there is no permission? ? ? _html/css_WEB-ITnose

Why does the system prompt that there is no permission? ? ? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:21
Original
1393 people have browsed it

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>
Copy after login


Prompt message:

Web page error details

User agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; , 13 Aug 2013 02:59:43 UTC


Message: No permission
Lines: 17
Characters: 4
Code: 0
URI: http:// 127.0.0.1:8020/Domdemo/domdemo/domdemo.html





Reply to discussion (solution)

Corresponding line number It’s 10 instead of 17.

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template