小编Noe*_*lin的帖子

暂停功能直到输入键被按下javascript

新手到javascript.我知道这可能很简单,但我无法理解.我想执行一个函数.在函数中间暂停并等待用户点击"enter"键,这将允许函数再次继续(或将调用另一个函数来触发).

function appear()
{
document.getElementById("firstt").style.visibility="visible";
//here is where I want the pause to happen until the user presses "enter" key
//Below is what I want to happen after the "enter" key has been pressed.
document.getElementById("startrouter").style.visibility="visible";


}
Run Code Online (Sandbox Code Playgroud)

javascript function

5
推荐指数
2
解决办法
9250
查看次数

标签 统计

function ×1

javascript ×1