Browser support:
Allows a form to be submitted with key encryption. The element generates a secure key and submits the public key with the form.
This element cannot have a closing tag.
JavaScript page for this element: keygen .
Possible members:
accessKey
Sets an access key to an element.
challenge
Sets a challenge string for verification of an encrypted package.
class
Sets the style class or classes that belong to the element.
contentEditable
Sets whether the contents of the object are editable.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
id
Sets a unique identifier for the object.
keyType
Sets the type of encryption used by the keygen element.
lang
Specifies the language of the element.
MULTIPLE
Sets whether more than one item from a list can be selected.
name
Sets the name of a form control that affects the contents of the message submitted to the server.
pqg
This attribute appears to be a security string to be sent and verified.
size
Specifies the count of the visible option items in a selection list. The selection list can be a select element or the selection list of a keygen element.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
title
Specifies a tooltip for an element.
onBlur
Occurs when an element loses focus.
onChange
Occurs when the selection, the checked state or the contents of an element have changed. In some cases, it only occurs when the element loses the focus.
onClick
Occurs when the user clicks on an element.
onContextMenu
Occurs when the right mouse button is clicked on an element and the context menu is shown.
onDblClick
Occurs when the user double clicks on an element.
onFocus
Occurs when an element receives focus.
onInput
Occurs when the text content of an element is changed through the user interface.
onKeyDown
Occurs on an element that has the focus when a key is pressed down and occurs periodically until the key is released.
onKeyPress
Occurs on an element that has the focus when a key is pressed down and occurs periodically until the key is released.
onKeyUp
Occurs on an element that has the focus when the user releases a key.
onMouseDown
Occurs when the user presses a mouse button over an element.
onMouseMove
Occurs when the user moves the mouse over the element.
onMouseOut
Occurs when the user moves the mouse pointer out of the element.
onMouseOver
Occurs when the user moves the mouse pointer into the element.
onMouseUp
Occurs when the user releases a mouse button over an element.
onMouseWheel
Occurs when the mouse wheel rolls.
onReset
Occurs on a form before it is reset.
onSelect
Occurs after some text has been selected in an element.
onSubmit
Occurs on a form element when the user clicks on a submit button in the form .
Example HTML code 1:
This example illustrates the use of the keygen element:
< form method = "post" action = "#URL#" enctype = "application/x-www-form-urlencoded" >
< keygen name = "key" challenge = "1125983021" />
< input type = "text" name = "textToCode" value = "Some Text" />
< br />
< input type = "submit" value = "Send" />
</ form >
Did you find this example helpful?
yes
no
External links:
Share:
Digg
Del.icio.us
Reddit
Facebook
Twitter
Diigo
User Contributed Comments