Javascript window.open仅在IE中出错-参数无效
我有一个简单的日历弹出窗口时,日历上的日期是点击。下面的代码适用于Opera、FF和Chrome,但不适用于IE6-8。它在底部显示了第页上的Javascript window.open仅在IE中出错-参数无效,javascript,window.open,invalid-argument,Javascript,Window.open,Invalid Argument,我有一个简单的日历弹出窗口时,日历上的日期是点击。下面的代码适用于Opera、FF和Chrome,但不适用于IE6-8。它在底部显示了第页上的错误,并显示错误无效参数 <div class="day-number">1</div> <td class="calendar-day" onclick="window.open('http://www.cal.com/admin/editevents.php?day=2&month=4&year=2011'
错误,并显示错误无效参数
<div class="day-number">1</div>
<td class="calendar-day" onclick="window.open('http://www.cal.com/admin/editevents.php?day=2&month=4&year=2011',
'Edit Events', 'scrollbars=1,width=600,height=475');">
1
有人能帮我找出我在做什么,根据IE判断是对是错吗?窗口名称不应该有空格。尝试编辑事件
window.open(theURL,winName,features);
例如:window.open('google.com','Edit Events','width=100')//错误
window.open('google.com','EditEvents','width=100'); //True
=>
编辑事件//错误
EditEvents//true
=>winName没有空格。可能重复@Pekka,但问题不同。问这个问题时也没有提到这个问题。当一个人投票结束一个问题时,系统会自动创建上面的评论,作为另一个问题的副本。这并不是指责你没有搜索:)但它显然是重复的。只是发现它也不喜欢连字符“-”