Book Section

General Section

Other Sites

|
JavaScript Workshop Forums
View previous topic :: View next topic |
Author |
Message |
mgm
Site Admin

Joined: 13 Jul 2002
Posts: 301
Location: Salt Lake City, UT
|
Posted: Sun Aug 25, 2002 3:10 am Post subject: Hints: Turning on Error Messages |
 |
|
We often have questions like this in our forum:
Quote: |
I wrote the following script and nothing at all happens when I view it in a browser. |
In cases like this, if nothing is really happening at all, JavaScript might be turned off in the browser. But more likely, your browser is simply not configured to display error messages. When you're debugging a script, be sure you turn on error messages so you'll have all the information you can get about your script's problems.
Here's how to enable error messages in Internet Explorer:
- From the menu, select Tools | Internet Options.
- Select the Advanced tab at the top of the dialog.
- Uncheck the Disable script debugging option.
- Check the Display a notification about every script error option.
- Click OK to save the settings.
You might find these error messages annoying (and surprisingly common) when visiting other people's sites. That's why I keep the errors disabled. When they're disabled, you'll see a tiny red ! icon in the IE status bar when an error happens - double-click on this icon to display the error message.
In Netscape, errors are displayed on the JavaScript Console. You might need to view the console to see them. Type javascript: into the address field in most versions of Netscape to view the console. If this doesn't work in your version, try selecting Tasks | Tools | JavaScript Console from the menu.
_________________
Michael Moncur
Owner and Moderator, The JavaScript Workshop
Read the guidelines before posting: http://jsworkshop.com/posting.html
|
|
Back to top |
|
 |
zachariah
Member

Joined: 07 Sep 2002
Posts: 103
Location: Earth
|
Posted: Sat May 15, 2004 8:47 pm Post subject: Re: Hints: Turning on Error Messages |
 |
|
mgm wrote: |
Type javascript: into the address field |
Neat trick, that. Works in Mozilla (which Netscape really is just a re-branded version of), too.
_________________
Firefox • Thunderbird
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing. |
|
|