【发布时间】:2017-03-29 20:01:18
【问题描述】:
有没有办法使用 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>
感谢
【问题讨论】: