在本窗口中打开页面:

     <input type="button" value="添加"
            onclick="javascript:window.location='addlinkform.asp'" />

保持当前页面,打开新的页面:

<input type="button" value="添加"
            onclick="javascript:window.open('picture.asp')" />

关闭当前页面:

<script type="text/javascript">
window.close();
</script>

posted on 2009-09-24 21:20  marcus.jun  阅读(222)  评论(0编辑  收藏  举报