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
3:26 am May 14, 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
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
Country Removal notice from Google Search
SEO question
Page indexed but live url test gets 500 error
Sitemaps for large websites and SEO - add everything or just some?
reverse() -- ColdFusion(or your language)/SQL + JavaScript
Home
Forums Index
Browser Side
/
JavaScript and AJAX
3:26 am May 14, 2026