2010-03-18 46 views

回答

1

,如果你想在你需要寫

onclick="ob=this.form.table;window.location.href=(ob.options[ob.selectedIndex].value)"/> 
+0

哼並沒有工作在同一窗口中打開必須與我的JavaScript編碼的問題... – 2010-03-18 15:17:03

0

你希望它在同一個窗口中打開?

如果是使用window.location

1

你應該將其替換爲:

onclick="ob=this.form.table;document.location=ob.options[ob.selectedIndex].value;"/> 

Window.open()打開一個新窗口; document.location更改當前窗口中的頁面。

相關問題