Important alert: (current site time 7/15/2013 1:53:09 PM EDT)
 

VB icon

Stop JavaScript Errors

Email
Submitted on: 1/27/2001 1:21:51 PM
By: Mike McNaughton  
Level: Intermediate
User Rating: By 6 Users
Compatibility: JavaScript
Views: 15330
(About the author)
 
     This code will limit all Javascript Errors
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: Stop JavaScript Errors
' Description:This code will limit all Javascript Errors
' By: Mike McNaughton
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=2068&lngWId=14'for details.'**************************************

<script LANGUAGE="JavaScript">
<!--
// suppress javascript errors
function stoperror(){
return true
}
window.onerror=stoperror
// end hide -->


Other 15 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

1/27/2001 1:42:26 PMJohnny

Now I know I can be a very easy marker when looking at these things as I have always said but this is another great code. It works VERY WELL!!!
(If this comment was disrespectful, please report it.)

 
8/2/2001 7:36:51 AMEvelin

well i copied and pasted the code into my html...but it errased all the html...showing me only this code on the wegsite then...did i paste it into the wrong spot in my html????
(If this comment was disrespectful, please report it.)

 
8/25/2003 6:25:38 PMEdwin

Seriously...I don't think this should have won an award.
(If this comment was disrespectful, please report it.)

 
6/2/2004 5:00:26 PM

I had the same problem as Evelin, I copied and pasted it into my code and it erased all of my html from the page. Don't think that is supposed to happen, do you? ::chuckles::
(If this comment was disrespectful, please report it.)

 
12/5/2004 3:33:22 PM

did u use the whole code, try putting t in the %3chead%3E%3ccode%3E%3c/head%3E of the
docment, then if that dose not work put it in the %3cbody%3E of the document
(If this comment was disrespectful, please report it.)

 
1/29/2005 1:16:09 AM

I found this script very helpful. I did not have any problems with it at all. Thank you for sharing a very good and useful script.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.