在 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>

by mhchen15 on 20 11 月, 2012 in Javascript, 程式 - Tags:
Tags:

There are no comments.

Name*: Website: E-Mail*:
XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>