点滴记忆

笔记

js跳转和关闭窗口语句

2013-1-31 一抹阳光 网站前端

兼容IE和火狐

跳转:

<script language='javascript' type='text/javascript'>window.location.href="makehtml.php"</script>

关闭:

<script language='javascript' type='text/javascript'>opener=null;self.close(); </script>