简单一句话:就是使某些不支持javascript或者禁用javascript的浏览器能够顺利地访问你的网站。(个人感觉就是代码的兼容性更强,依靠html自身的属性进行展示效果)
例如:
function a(winURL){
window.open('http://www.baidu.com','a','width=300px,height=200px;')
}
<a href='http://www.baidu.com' onclick='a(this.href);return false;'>example</a>
即使javascript被禁用,这个链接依旧可用。