input链接页面
来源:互联网 发布:屏蔽ip地址软件 编辑:程序博客网 时间:2024/06/16 07:38
1.链接到某页
2.返回(等同后退)
3.打开新网页
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;" >
0 0
- input链接页面
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- input点击链接另一个页面,各种操作
- jQuery禁用a和input 打开链接页面
- input链接页面、打开新网页等等的具体实现
- input点击链接另一个页面,各种操…
- Web开发之input链接页面、打开新网页等等的具体实现
- input /button链接方法
- input链接新页面
- 关于页面的input checkbox
- C#页面链接
- 获取页面所有链接
- 链接回到页面顶部
- 页面抓取特定链接
- 右键自动链接页面
- jsp页面链接
- JavaScript数组遍历
- oracle常见问题汇总
- php提示Call to undefined function curl_init() 错误的解决办法
- 配置GoogleMap后android.view.InflateException:Binary XML file line # 10:Error inflating class
- 快速创建一个zend framework 2的module
- input链接页面
- .NET的Snk使用方法
- 回收站清空文件要如何进行恢复
- .net截屏代码
- 收集的一些资源列表包括小工具源码等
- Windows 图形界面笔记(1) - 窗口的显示
- ueditor有的机器显示有的机器页面空白--解决
- Win 2008 R2安装SQL Server 2008“性能计数器注册表配置单元一致性”失败的解决办法 性能计数器注册表配置单位元一致性 失败 300956
- 一个在线编辑生成公式的地方(基于LATEX语言)