"Unable to get property 'appendChild' of undefined or null reference" script error

d00m666

New member
Joined
Dec 17, 2017
Messages
1
Programming Experience
Beginner
"Unable to get property 'appendChild' of undefined or null reference" script error

I'm trying to put some html code into a webbrowser, but I'm getting the error in title.
Code I'm trying to embed:
VB.NET:
<html>
<head>
    <script type="text/javascript" src="https://www.example.com/XXX.js.php"></script>
</head>
<body></body>
</html>
How I'm putting it in the webbrowser:
VB.NET:
WebBrowser1.Navigate("about:blank")
WebBrowser1.Document.Write(String.Empty)
WebBrowser1.DocumentText = My.Resources.HTML
Any help?
 
It sounds like the script is expecting there to be some specific HTML in the page that doesn't exist. Maybe you should take a look at the script and see what it actually does, then make sure that what it does it to actually exists in your HTML page.
 
Back
Top