開啟新的視窗
window.open 可開啟開啟新的視窗
程式碼如下:
<script>
function Event1(){
window.open("http://www.google.com",
"toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, resizable=yes");
}
</script>
<input type="button" value="Press to start" onclick="Event1()">
執行結果