onclick跳转
设置window的location.href属性
οnclick="window.location.href='URL'"
οnclick="location='URL'"
调用window的open方法
οnclick="window.open('URL','_blank');" // 在新窗口打开
οnclick="window.open('URL','_self');" // 覆盖当前页
a标签跳转
<a href="URL" target="_blank">Preface</a> // 在新窗口打开
<a href="URL" target="_self">Preface</a> // 覆盖当前页,target属性默认为_self,此处可省略