Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    In javascript i know that you can define the onerror command to run a function, but how do you set it back to the default?

    I want to change the onerror to nothing while a function is running, then at the end of the function reset it. the function tries to access the title of a window that may or may not exist, and if it doesn't i dont want it to make an error. would this work?


    Code:
    temperror = window.onError();
    window.onError = "";
    
    .... code ...
    
    window.onError = temperror;
    Thanks Jordan

    EDIT: added my sig
    If its not in Family Guy its not worth it.

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com