常用到的Button链接
来源:互联网 发布:锻造模拟软件forge 编辑:程序博客网 时间:2024/05/20 17:08
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://hi.baidu.com/harryxue'" />
6.打开无边框的新窗口同时指向另一页
<input type="button" name="Submit2" value="确 定" class="btn" onclick="javascript:window.open('http://hi.baidu.com/harryxue','','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;" >
- 常用到的Button链接
- 自己总结了一下常用到的Button链接,代码如下:
- 七种button/input常用链接方式
- Xcode view button 链接到 事件
- css 常用的button
- jsp 模拟按钮,点击button,链接到a标签,是a标签的地址跳转
- 常用的event.button事件
- 按钮的背景图片变换。。。。(button移动到上面的时候是手型,几个去除链接/按钮虚线框的方法 )
- input/Button中增加链接的方法
- 常用控件Radio Button的常用用法
- 常用控件Radio Button的常用用法
- 常用控件Radio Button的常用用法
- 常用控件Radio Button的常用用法
- AndroidGUI04:Button(Basic Button,ImageButton, Check Box, Toggle Button, Radio Button)的常用技巧
- AndroidGUI04:Button(Basic Button,ImageButton, Check Box, Toggle Button, Radio Button)的常用技巧
- AndroidGUI04:Button(Basic Button,ImageButton, Check Box, Toggle Button, Radio Button)的常用技巧
- 常用的链接
- 常用的资源链接
- 父母是座老房子
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- 接口与抽象类的区别
- 一致性哈希机器在分布式中的作用
- python 脚本学习记录(1)
- 常用到的Button链接
- 理解 ORACLE数据库 字符集
- assoc_delete 理解
- 自己做jQuery开源插件之四:弹出层插件
- 将xib文件封装一个自定义view的步骤
- 苏州源代码加密软件SDC沙盒分析
- 爬虫系列二:认识爬虫
- Android中的Environment.getExternalStorageState使用
- mac中搭建nginx + unicorn