11 月
20
20
在 showModalDialog 使用 javascript 執行 location.href
在 showModalDialog 中使用 javascript 執行 location.href = ‘ abc.htm’ 時,會變成開啟一個新的視窗,即使加了<head><base target=”_self” /></head>語法也一樣,此時要使用另一種寫法:
<script language=”javascript” type=”text/javascript”>
window.name=”_self”;
window.open(“abc.htm”,”_self”)
</script>
There are no comments.