dreamweaver里面如何跳转到另外一个页面,除了href

来源:百度知道 编辑:UC知道 时间:2024/06/19 20:19:38

  dreamweaver里面可以通过button实现跳转到另外一个页面:
  1、在原窗口打开链接
 

 <input type = "button" value = "注册" onClick = "location = '链接地址'">

  2、在新窗口打开链接

  <input type = "button" value = "注册" onClick = "window.open('链接地址')">

dreamweaver里 任何方法都不能实现页面跳转。

但是,如果是在.html 或 .htm 或 .shtml 或 .shtm 里的话 可以用js实现:
<a onclick="window.open('http://www.baidu.com');" style="cursor:pointer;">新窗口打开</a>

<a onclick="window.location.href='http://www.baidu.com';" style="cursor:pointer;">本窗口打开</a>