input点击链接另一个页面,各种操…
2017-04-07 10:23
295 查看
1.链接到某页
<input type="button" name="Submit" value="确 定"
class="btn" onclick="location.href='filename.html'"
/>
2.返回(等同后退)
<input name="Submit2" type="button" class="btn"
onclick="location.href='javascript:history.go(-1);'" value="返 回"
/>
3.打开新网页
<input type="button" name="Submit2" value="确 定"
class="btn" onclick="window.open('filename.html')"
/>
4.打开无边框的新窗口
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="javascript:window.open('filename.html','','width=720,height=500,resizable=yes,scrollbars=yes,status=no')"
/>
5.打开新网页同时指向另一页
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="window.open('filename.html');location.href='http://www.cxybl.com'"
/>
6.打开无边框的新窗口同时指向另一页
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="javascript:window.open('http://www.cxybl.com','','width=720,height=500,resizable=yes,scrollbars=yes,status=no');
window.location='filename.html';" />
7.点击按钮弹出确认alert窗口
方式一:
<input type="button" name="Submit1" value="确定"
class="btn"
onClick="alert('是否确认提交?');location.href= 'filename.html';return
false;" >
方式二:
<input type="button" name="Submit2" value="确定"
class="btn"
onClick="if (confirm('是否确认提交?'))location.href=
'filename.html';return false;" >
<input type="button" name="Submit" value="确 定"
class="btn" onclick="location.href='filename.html'"
/>
2.返回(等同后退)
<input name="Submit2" type="button" class="btn"
onclick="location.href='javascript:history.go(-1);'" value="返 回"
/>
3.打开新网页
<input type="button" name="Submit2" value="确 定"
class="btn" onclick="window.open('filename.html')"
/>
4.打开无边框的新窗口
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="javascript:window.open('filename.html','','width=720,height=500,resizable=yes,scrollbars=yes,status=no')"
/>
5.打开新网页同时指向另一页
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="window.open('filename.html');location.href='http://www.cxybl.com'"
/>
6.打开无边框的新窗口同时指向另一页
<input type="button" name="Submit2" value="确 定"
class="btn"
onclick="javascript:window.open('http://www.cxybl.com','','width=720,height=500,resizable=yes,scrollbars=yes,status=no');
window.location='filename.html';" />
7.点击按钮弹出确认alert窗口
方式一:
<input type="button" name="Submit1" value="确定"
class="btn"
onClick="alert('是否确认提交?');location.href= 'filename.html';return
false;" >
方式二:
<input type="button" name="Submit2" value="确定"
class="btn"
onClick="if (confirm('是否确认提交?'))location.href=
'filename.html';return false;" >
相关文章推荐
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- ASP.NET MVC WebApi 返回数据类型序列化控制(json,xml) 用javascript在客户端删除某一个cookie键值对 input点击链接另一个页面,各种操作。 C# 往线程里传参数的方法总结 TCP/IP 协议 用C#+Selenium+ChromeDriver 生成我的咕咚跑步路线地图 (转)值得学习百度开源70+项目
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作。
- 点击datagrid的一行,然后链接到另一个页面
- 在一个页面点击链接跳转至另一个页面的选项卡tab中
- 当点击一个按钮没法链接到别的页面时的各种原因
- 微信点击图文消息链接 在根据判断跳到另一个页面 但是 点关闭 将当前的关闭之后 会出现空白页
- extjs 点击链接到另一个页面 并激活另一个页面的指定tab
- 改装的tabs页面,鼠标移动上去切换,可以点击链接和jquery的UI是不同的
- QTP获取页面链接并点击、拖拽方法
- 自动点击页面中的JavaScript链接
- 点击选中栏目时,页面跳转到另一个页面
- 点击一个链接同时打开两个页面