Hi,
The function emailSubscribe() works great in Firefox 2 and Safari 2.
In Windows Internet Explorer 7 and Opera 9 it just submits the form without even looking at the script. Function is a part of [url=http://opensource-notebook.com/lib/script/formBehavior.js]formBehavior.js[url=http://opensource-notebook.com/subscribe/]this page
[code=html]function emailSubscribe() {
if (document.getElementById(’email’).value == ‘[email protected]’) {
document.getElementById(’email’).value=”;
return false;
} else if (document.getElementById(’email’).value == ”) {
document.getElementById(’email’).value=’[email protected]’;
return false;
} else if (document.getElementById(’email’).value != ‘[email protected]’ && document.getElementById(’email’).value != ”) {
document.getElementById(‘Submit’).value = ‘Subscribe [Processing…]’;
document.getElementById(‘Submit’).disabled=true;
return true;
}
}
…and while you are at it: Running wIE7 (works on other browsers) In [url=http://opensource-notebook.com/2006/12/demo/#comment]this form