最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

onsubmit Event

Internet Development Index

Fires when a FORM is about to be submitted.

Syntax

Inline HTML<FORM onsubmit = "handler" ... > All platforms
Event propertyFORM.onsubmit = handlerJScript only
FORM.onsubmit = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = FORM EVENT = onsubmit> Internet Explorer only

Event Information

BubblesNo
CancelsYes
To invoke Submit a form using the INPUT TYPE=submit, INPUT TYPE=image, or BUTTON TYPE=submit object.
Default action Causes a form to be sent to whatever location is stipulated in the ACTION attribute of the form object.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Available Properties

altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
ctrlKey Sets or retrieves the state of the CTRL key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
returnValue Sets or retrieves the return value from the event.
shiftKey Sets or retrieves the state of the SHIFT key.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.

Remarks

You can override this event by returning false in the event handler. Use this capability to validate data on the client side to prevent invalid data from being submitted to the server. If the event handler is called by the onsubmit attribute of the form object, the code must explicitly request the return value using the return function, and the event handler must provide an explicit return value for each possible code path in the event handler function.

The submit method does not invoke the onsubmit event handler.

Example

This example shows how to use onsubmit on a form to request the return value using the return function.

<BODY>
<FORM NAME="oDoSubmit" onsubmit="return(myOnSubmitEventHandler());">
</FORM>
</BODY>

Standards Information

This event is defined in HTML 4.0 Non-Microsoft link.

Applies To

FORM

See Also

ACTION, METHOD
岳阳市| 博爱县| 卢氏县| 探索| 秭归县| 伊宁市| 兰西县| 延津县| 桃江县| 台山市| 平和县| 奉化市| 陈巴尔虎旗| 东丽区| 武胜县| 白玉县| 乳山市| 宁乡县| 潮安县| 阿城市| 宁明县| 新邵县| 海南省| 盘山县| 清原| 平邑县| 天气| 开封县| 广德县| 忻州市| 淮安市| 墨竹工卡县| 东阳市| 西和县| 隆安县| 西乌| 衡山县| 新绛县| 许昌市| 嘉荫县| 体育|