Javascript 第五章

<html>
<head>
    <meta charset=utf-8>   
    <title></title>
</head>
<body>
<h1>非平稳退化,如果浏览器禁用javascript,则会变得很糟糕</h1>
<a href="#" onclick="popUp('http://www.baidu.com');return false">Example1</a>

<h1>平稳退化Graceful degradation</h1>
<a href="http://www.baidu.com" onclick="popUp(this.href);return false">Example2</a>



<script> function popUp(url){ window.open(url,"popUp","width=320,height=480"); } </script> </body> </html>

 

posted @ 2013-03-11 15:07  mguo  阅读(211)  评论(0编辑  收藏  举报