I have this working in all browser except IE. Why does it not work?
The form code is here:
<FORM name ="frontpagequestion">
<input class="" type="text" name="questiontitle" value="ask your question and press enter" onfocus="if(this.value == 'ask your question and press enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'ask your question and press enter';}" size = "100">
<input type="submit" style="position: absolute; left: -9999px" onClick="process();return false">
</FORM>
The Javascript code is here:
function process(){
var title = document.frontpagequestion.questiontitle.value;
title = escape(title);
$.cookie("INPUTBOX",title);
window.location = "/questions/ask";
}
In IE - it just returns to the main form and does not submit the inputbox value.
Any idea?