J
Jonathan Wood
I'm developing the site at http://www.medicorpmap.com.
I created a warning that javascript is disabled and then registered a
start-up script to hide the warning. This way, users will see the warning if
javascript is not working.
When I view the page, the warning is gone, unless I use FireFox.
Does anyone know why my javascript doesn't appear to work under FireFox?
Here's the server-side code:
// Start-up script to hide javascript warning
if (!Page.ClientScript.IsStartupScriptRegistered("JavaWarn"))
Page.ClientScript.RegisterStartupScript(typeof(Page), "JavaWarn",
"document.getElementById('javawarning').innerText='';", true);
I also tried outerText, which also seems to be ignored by FireFox.
Thanks.
I created a warning that javascript is disabled and then registered a
start-up script to hide the warning. This way, users will see the warning if
javascript is not working.
When I view the page, the warning is gone, unless I use FireFox.
Does anyone know why my javascript doesn't appear to work under FireFox?
Here's the server-side code:
// Start-up script to hide javascript warning
if (!Page.ClientScript.IsStartupScriptRegistered("JavaWarn"))
Page.ClientScript.RegisterStartupScript(typeof(Page), "JavaWarn",
"document.getElementById('javawarning').innerText='';", true);
I also tried outerText, which also seems to be ignored by FireFox.
Thanks.