Form表單提交刷新頁面不跳轉(zhuǎn)源碼設(shè)計
來源:易賢網(wǎng) 閱讀:2378 次 日期:2014-05-09 11:48:00
溫馨提示:易賢網(wǎng)小編為您整理了“Form表單提交刷新頁面不跳轉(zhuǎn)源碼設(shè)計”,方便廣大網(wǎng)友查閱!

1、設(shè)計源碼

代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Form提交表單頁面不跳轉(zhuǎn)</title>

</head>

<body>

<form action="" id="" method="post" target="id_iframe">

<input type="text" id="input_text" name="input_text"/>

<input type="submit" id="sobmit" name="submit" value="提交" />

</form>

<iframe id="id_iframe" name="id_iframe" style="display:none;"></iframe>

</body>

</html>

2、運行結(jié)果

(1)輸入“451”,單擊“提交”

1.jpg

(2)輸入“45464646”,單擊“提交”

2.jpg

頁面提交刷新,不跳轉(zhuǎn)

更多信息請查看IT技術(shù)專欄

更多信息請查看網(wǎng)頁制作
易賢網(wǎng)手機網(wǎng)站地址:Form表單提交刷新頁面不跳轉(zhuǎn)源碼設(shè)計
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇剩?/div>
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權(quán)所有:易賢網(wǎng)