刚接触 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";
}