新手到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)