We are using a JavaScript to validate email addresses and email domain names entered by users into html pages. The script is available at www.javascriptkit.com so I am not attaching it here. When we initially tested the script, it crashed on IE5.0 So we fumbled around till we reached the Language setting. We replaced the Language with "JavaScript 1.2" and the script worked alright. Later when we tested the script on IE6.0, it crashed, and this time, we had to rename the Language attribute to "JavaScript" without the version number.

So how can we make the scripts compatible for the different browser versions?

.