location.href 为什么不跳转

用链接做按钮的审核,总用<a href=”javascript:void(0)” onclick=”myfunc()”>

后来,发现myfunc()里,如果有location.href 或者 window.location.href的时候,发现这句话根本不工作,页面都不带跳转的。原来是void(0)搞得鬼,改成<a href=”javascript:myfunc()”>就哦了。

Posted in 未分类 at 12月 20th, 2008. Trackback URI: trackback
Tags: ,

No Responses to “location.href 为什么不跳转”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
请输入图片中的字符以验证你并非垃圾机器人. 点击图片收听验证码的语音版.
点击这里收听此验证码的语音版本