Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Copyright 2012 Google Inc.
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
 package elemental.html;
 import  elemental.html.*;
 import java.util.Date;

Note: This page describes the Keygen Element interface as specified, not as currently implemented by Gecko. See bug 101019 for details and status.
 public interface KeygenElement extends Element {

Reflects the autofocus  HTML attribute, indicating that the form control should have input focus when the page loads.
   boolean isAutofocus();
   void setAutofocus(boolean arg);

Reflects the challenge HTML attribute, containing a challenge string that is packaged with the submitted key.
   void setChallenge(String arg);

Reflects the disabled  HTML attribute, indicating that the control is not available for interaction.
   boolean isDisabled();
   void setDisabled(boolean arg);

Indicates the control's form owner, reflecting the form  HTML attribute if it is defined.
   FormElement getForm();

Reflects the keytype HTML attribute, containing the type of key used.
   void setKeytype(String arg);

A list of label elements associated with this keygen element.
   NodeList getLabels();

Reflects the name HTML attribute, containing the name for the control that is submitted with form data.
  void setName(String arg);

Must be the value keygen.
  String getType();

A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity states that this element is in.
Always false because keygen objects are never candidates for constraint validation.
  boolean isWillValidate();

Always returns true because keygen objects are never candidates for constraint validation.
  boolean checkValidity();

Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
  void setCustomValidity(String error);
New to GrepCode? Check out our FAQ X