【发布时间】:2013-11-07 04:19:00
【问题描述】:
最近我设计了一个页面,它有一个带有四个按钮的导航栏。用户在点击每个不同的按钮时被引导到不同的页面。对于我使用以下代码的按钮,
<button type="button" class="subheader-buttons" onclick="window.loation=document.location.href='PAGE 1'">Button 1</button>
我对所有四个按钮都使用了上面的代码。现在我想知道使用链接而不是按钮是否有利?链接从一页转到另一页的速度是否比按钮快?
【问题讨论】:
标签: javascript html button hyperlink