有没有办法使用 HTML 导航到另一个表单?
例如,我的 innerHTML 中的一个链接
<a href="goto form 2 here">Form2</a>
它只是我硬编码到 TW3ScrollControl 的 innerHTML 属性中的 HTML。有些 HTML 是静态的,有些是动态数据(例如问题和答案)我从我的 JSON 文件中获得
例如
Who is the president of the United States?
Hillary Clinton
Bernie Sanders
Joseph Biden
Donald Trump
所以,在我的脑海中给出这样的东西,如果点击其中一个名字,GotoForm 会怎么做?
<div>
<p>Who is the president of the United States?</p>
<br>
<center>
<A href=""> Hillary Clinton </A><br>
<A href=""> Bernie Sanders </A<br>
<A href=""> Joseph Biden </A<br>
<A href=""> Donald Trump </A<br>
</center>
</div>
谢谢