Browser Compatibility: Final Thoughts - Doc JavaScript
A Final Word
By using defensive scripting techniques, including object detection, you can ensure that your scripts don't crash or generate errors. Add error-handling mechanisms to create bulletproof scripts. When implementing these techniques, you are likely to receive less feedback from your users, because they won't need to report your annoying JavaScript errors. In this column you learned:
- How to determine which browser the user is running.
- How to find out if a specific object exists.
- How to find out if a specific method exists.
- How to ignore errors when they occur.
- How to cut & paste common object detection routines.
Created: November 4, 1997
Revised: December 4, 1997
URL: https://www.webreference.com/js/column6/final.html