我有这个工作在除IE浏览器以外的所有浏览器。为什么它不起作用?为什么这不工作在IE - 表单提交问题
形式的代码是在这里:
<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>
的JavaScript代码是在这里:
function process(){
var title = document.frontpagequestion.questiontitle.value;
title = escape(title);
$.cookie("INPUTBOX",title);
window.location = "https://stackoverflow.com/questions/ask";
}
在IE浏览器 - 它只是返回到主窗体,不提交输入框值。
有什么想法?
你的网站是堆栈溢出的副本还是什么?抄袭对网络不利! – halocursed 2009-10-11 19:49:13