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";
}