JavaScript脚本跳转页面不生效,求助高手!
<script type="text/JavaScript" >
function open() {
window.open ('http://www.cnblogs.com/stswordman/archive/2006/06/02/415853.html')
}
</script>
<input type="button" value="Downlocad" class="buttonCss" onclick="open()">
------解决方案--------------------open改成别的名字,因为window本身有open方法;
------解决方案--------------------<script type="text/JavaScript" >
function openPage() {
window.open('http://www.cnblogs.com/stswordman/archive/2006/06/02/415853.html')
}
</script>
<input type="button" value="Downlocad" class="buttonCss" onclick="openPage()">
------解决方案-------------------- 直接这样不是更省事?
<input type="button" value="Downlocad" class="buttonCss" onclick="window.open ('http://www.cnblogs.com/stswordman/archive/2006/06/02/415853.html');">
------解决方案--------------------和本身的那个一样名字了。