Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Browser Side
/
JavaScript and AJAX
10:54 am Jun 28, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
Try - Catch in Javascript?
Is is possible?
Herath
Msg#:1489430
9:53 pm on Sep 17, 2004
(gmt 0)
Is there any way you could catch a runtime error in javascript (without using IFs of course)
Rambo Tribble
Msg#:1489431
10:26 pm on Sep 17, 2004
(gmt 0)
Try/catch/finally was implemented in JavaScript 1.4.
Gorilla
Msg#:1489432
10:29 pm on Sep 17, 2004
(gmt 0)
Try the code below, and you should get a feeling for how to use try/catch to handle error conditions.
try {
i = 1 / 0;
}
catch ( e ) {
alert ( e );
}
Herath
Msg#:1489433
1:42 pm on Sep 20, 2004
(gmt 0)
Great!. What browsers support Javascript 1.4?
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
AdSense Earnings and Observations - June 2026
Quite quiet in here, anyone know why?
Best Learning Path for a Web Development Beginner?
Good Bye AdWords - or whatever you call it these days
Buying traffic to appear on Google Discover
Home
Forums Index
Browser Side
/
JavaScript and AJAX
10:54 am Jun 28, 2026