相关疑难解决方法(0)

使用脚本设置onclick事件

我想我的scriptonclick的properity <div>.

我用这个Html代码:

<div id="forgotpass">Forgot Password?</div>
Run Code Online (Sandbox Code Playgroud)

我希望当用户单击要运行<div>forgotpass()函数时,但我不想使用它:

<div id="forgotpass" onclick="forgotpass();">Forgot Password?</div>
Run Code Online (Sandbox Code Playgroud)

html javascript events dom javascript-events

21
推荐指数
2
解决办法
8万
查看次数

标签 统计

dom ×1

events ×1

html ×1

javascript ×1

javascript-events ×1