use*_*585 3 javascript redirect
我有这个代码根据下拉列表的值重定向到页面:
<Script language="JavaScript">
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
location=form.select.options[index].value;}}
//-->
</SCRIPT>
Run Code Online (Sandbox Code Playgroud)
如何在新窗口中打开它?
j08*_*691 14
function goto(form) {
var index = form.select.selectedIndex
if (form.select.options[index].value != "0") {
location = form.select.options[index].value;
window.open(location);
}
}?
Run Code Online (Sandbox Code Playgroud)
有关可用选项的完整列表window.open,请参阅https://developer.mozilla.org/en/DOM/window.open
| 归档时间: |
|
| 查看次数: |
38646 次 |
| 最近记录: |