By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

How to hide a javascript error

P: 24
Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
Apr 30 '08 #1
Share this Question
Share on Google+
4 Replies


100+
P: 428
what is the error message?
Apr 30 '08 #2

hsriat
Expert 100+
P: 1,654
Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
Use try catch statement.
May 1 '08 #3

acoder
Expert Mod 15k+
P: 16,027
Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong
No, if you have an error, something is usually wrong. Just because it's working fine doesn't mean that everything is OK. Always try to get rid of the error (if possible) rather than look for a fix.
May 1 '08 #4

dlite922
Expert 100+
P: 1,584
Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
Use a browser like firefox, when your page loads, go to Tools -> Error Console.

There you will see the error and might even take you to the line of code that is wrong if you click the error.

You cannot _hide_ how the browser works, unless you OWN the browser and chose to not show a specific error.
May 2 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.