【发布时间】:2019-12-31 01:45:54
【问题描述】:
我正在用 Html 制作游戏,并且我需要在按键时链接到另一个页面。
我已经尝试过 href 和其他一些东西。 我的代码是:
<element onkeypress="Gamestart()">
<script>
function Gamestart() {
<a href="Part_Two.html">Play</a>
}
</script>
Html 从来没有真正给人们错误信息,所以我没有错误信息,但我的代码不起作用。
【问题讨论】: