【发布时间】:2015-04-03 15:36:36
【问题描述】:
<script>
function myFunction() {
var myWindow = window.open("http://www.w3schools.com" "width=200, height=100);
}
</script>
<a href="terms.html" onclick="myFunction()"> Terms and Conditions</a> in this term and conditions I have an onclick that calls `myFunction()` and i justenter code here have w3school as an example
对于onclick,它是否必须访问已发布的网站,或者它可以是我保存在硬盘上的名为terms.html 的html 文件?
【问题讨论】:
标签: javascript html new-window