php页面跳转

<a href="javascript:void(0)" onclick="document.getElementById('captcha_img').src='./captcha.php?r='+Math.random()">换一个?</a>

点击"换一个"后提示以下错误提示,是什么原因?

提示:

Not Found

The requested URL /czjytest/yanzhengma/javascript:void(0) was not found on this server.

Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80


qq_憨豆002_0
浏览 1548回答 2
2回答

qq_远方_3

将javascript:void(0)改成#
打开App,查看更多内容
随时随地看视频慕课网APP