
How can I get error messages from JavaScript pages to display?
This page: http://home.comcast.net/~wporter211/realsite/chess_etc/rrpair.htm is supposed to fill in a choice for the radio button sets at start up, but nothing happens. I am trying to track this problem down.
Chosen solution
You select the Web Console by following these steps:
- Open the
Firefox
menu - Under the
Web Developer
menu select theWeb Console
Please report back soon.
Read this answer in context 👍 1All Replies (3)
Chosen Solution
You select the Web Console by following these steps:
- Open the
Firefox
menu - Under the
Web Developer
menu select theWeb Console
Please report back soon.
Do you mean this code?
function StartUp() { document.tform.wbpcren[0].checked = true; // Default is Porter-Berger document.tform.select1[1].checked = true; // Sequential players is default document.tform.flipit[0].checked = true; // Will reverse all colors if checked document.tform.newtab[1].checked = true; // Default is to create new screen document.tform.bprint.style.visibility = 'hidden'; document.tform.NoPlayers.focus(); }
Seems to be working for me.
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
- Hold down the Shift key and left-click the Reload button
- Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
- Press "Command + Shift + R" (Mac)
I took out a page counter at the bottom and the
onload="StartUp()"
code performed as advertised, but I still need to know that for the future. After messing up working code I saw something pop up on the developer toolbar that took me to the Web Console and the error messages I was expecting.
Thanks for looking at it.