當(dāng)前位置:軟件學(xué)堂 > 資訊首頁(yè) > 網(wǎng)絡(luò)編程 > DIV+CSS > 表單名稱name

表單名稱name

2012/11/21 09:28:42作者:佚名來(lái)源:網(wǎng)絡(luò)

移動(dòng)端

【實(shí)例介紹】

表單名稱name

name標(biāo)記用來(lái)為當(dāng)前表單定義一個(gè)獨(dú)一無(wú)二的名稱,該名稱可以控制表單與后臺(tái)程序之間的關(guān)系。

【基本語(yǔ)法】

<form name="表單名稱">
···
</form>

【語(yǔ)法介紹】

表單名稱中不能包含特殊字符和空格。表單命名之后就可以用腳本語(yǔ)言(如JavaScript或VBScript)對(duì)它進(jìn)行控制。

【實(shí)例代碼】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>處理動(dòng)作</title> </head> <body> <table width="100%" cellspacing="0" cellpadding="0">   <tr>     <td><form action="mailto:weixiao@foxw.com" name="form1" >     </form></td>   </tr> </table> </body> </html>

【代碼分析】

代碼中加粗的代碼標(biāo)記將表單的名稱設(shè)置為forml。

 【素材及源碼下載】

請(qǐng)點(diǎn)擊:表單名稱name 下載本實(shí)例相關(guān)素材及源碼

 

標(biāo)簽: 表單  名稱name