Welcome to Webune Forums - We provide Excellent Web Hosting Services.

Today's questions is regarding javascript. We had a customer who was new to javascript and had a script which kept giving error on Microsoft Internet Explorer, but not other browsers like Firefox, the question is as follows:

Question: This is an error i am getting on one of my javascript scripts. i was wondering if anyone has seen this error before and if they can help me resolve it

Windows Internet Explorer

Errors on this webpage might cause it to work incorrectly
To see this message in the future, double-click the warning icon on the status bar.

Object expected
Code: 0
URI: http://localhost/ref_url.php
Line: 1
Char: 1

[] Always show this message for webpages errors

After troubleshooting with the customer, we were able to resolve this problem (error message pop up).

<body onload="BeginScript();">

Explanation: the customer had a function which he wanted to start right when the page loaded. the function name was called: BeginScript()

<body onload="BeginScript;">

Explanation: after removing the () from the function, it worked.

We dont know if this will help you, but if it did. good for you. but these are our notes so just incase anyone else sees this error in the future will know how to solve it and fix their code.