日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

input点击链接另一个页面,各种操作。

發(fā)布時間:2023/12/2 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 input点击链接另一个页面,各种操作。 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1.鏈接到某頁
<input type="button" name="Submit" value="確 定" class="btn" οnclick="location.href='filename.html'" />

2.返回(等同后退)
<input name="Submit2" type="button" class="btn" οnclick="location.href='javascript:history.go(-1);'" value="返 回" />

3.打開新網(wǎng)頁
<input type="button" name="Submit2" value="確 定" class="btn" οnclick="window.open('filename.html')" />

4.打開無邊框的新窗口
<input type="button" name="Submit2" value="確 定" class="btn" οnclick="javascript:window.open('filename.html','','width=720,height=500,resizable=yes,scrollbars=yes,status=no')" />

5.打開新網(wǎng)頁同時指向另一頁
<input type="button" name="Submit2" value="確 定" class="btn" οnclick="window.open('filename.html');location.href='http://www.cxybl.com'" />

6.打開無邊框的新窗口同時指向另一頁
<input type="button" name="Submit2" value="確 定" class="btn" οnclick="javascript:window.open('http://www.cxybl.com','','width=720,height=500,resizable=yes,scrollbars=yes,status=no'); window.location='filename.html';" />

7.點擊按鈕彈出確認(rèn)alert窗口
方式一:
<input type="button" name="Submit1" value="確定" class="btn"
onClick="alert('是否確認(rèn)提交?');location.href= 'filename.html';return false;" >
方式二:
<input type="button" name="Submit2" value="確定" class="btn"
onClick="if (confirm('是否確認(rèn)提交?'))location.href= 'filename.html';return false;" >

本文轉(zhuǎn)載于:猿2048?https://www.mk2048.com/blog/blog.php?id=hi21khcb&title=input點擊鏈接另一個頁面,各種操作。

總結(jié)

以上是生活随笔為你收集整理的input点击链接另一个页面,各种操作。的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。