how to make sure javascript will run on major browser


This question already has an answer here:



document.getElementById('passwordinfo').textContent=''; //For firefox

or try


For more info click HERE

innerText is not supported in firefox. Instead try innerHTML. Let me know if that works.

You also could use the html attribut reguired (explain) wich is supported from the most major Browsers (only Safari not) to check the user input. For the email validation you could use the type=email propertie (explain) to validate the email input which hase the same support as the required attribut.

Need Your Help

How to Compile with ngen.exe and How to run the native code that is generated?

c# .net visual-studio-2010 native-code ngen

I want to compile a C# program using ngen command line for a special purpose. So I create a console application in VS2010 and named it ngentest. A file by name ngentest.vshost.exe is created in vs2...

Webstorm Unexpected Token export

node.js ecmascript-6 webstorm babeljs es6-module-loader

I am having an "Unexpected token export" issue in Webstorm that has not been solved by the other StackOverflow posts. Essentially I am trying to use the import/export module functionality with the