1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
  10. * details.
  11. */
  12. package org.w3c.dom.html;
  13. /**
  14. * The anchor element. See the A element definition in HTML 4.0.
  15. * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
  16. */
  17. public interface HTMLAnchorElement extends HTMLElement {
  18. /**
  19. * A single character access key to give access to the form control. See
  20. * the accesskey attribute definition in HTML 4.0.
  21. */
  22. public String getAccessKey();
  23. public void setAccessKey(String accessKey);
  24. /**
  25. * The character encoding of the linked resource. See the charset
  26. * attribute definition in HTML 4.0.
  27. */
  28. public String getCharset();
  29. public void setCharset(String charset);
  30. /**
  31. * Comma-separated list of lengths, defining an active region geometry.
  32. * See also <code>shape</code> for the shape of the region. See the
  33. * coords attribute definition in HTML 4.0.
  34. */
  35. public String getCoords();
  36. public void setCoords(String coords);
  37. /**
  38. * The URI of the linked resource. See the href attribute definition in
  39. * HTML 4.0.
  40. */
  41. public String getHref();
  42. public void setHref(String href);
  43. /**
  44. * Language code of the linked resource. See the hreflang attribute
  45. * definition in HTML 4.0.
  46. */
  47. public String getHreflang();
  48. public void setHreflang(String hreflang);
  49. /**
  50. * Anchor name. See the name attribute definition in HTML 4.0.
  51. */
  52. public String getName();
  53. public void setName(String name);
  54. /**
  55. * Forward link type. See the rel attribute definition in HTML 4.0.
  56. */
  57. public String getRel();
  58. public void setRel(String rel);
  59. /**
  60. * Reverse link type. See the rev attribute definition in HTML 4.0.
  61. */
  62. public String getRev();
  63. public void setRev(String rev);
  64. /**
  65. * The shape of the active area. The coordinates are given by
  66. * <code>coords</code> . See the shape attribute definition in HTML 4.0.
  67. */
  68. public String getShape();
  69. public void setShape(String shape);
  70. /**
  71. * Index that represents the element's position in the tabbing order. See
  72. * the tabindex attribute definition in HTML 4.0.
  73. */
  74. public int getTabIndex();
  75. public void setTabIndex(int tabIndex);
  76. /**
  77. * Frame to render the resource in. See the target attribute definition
  78. * in HTML 4.0.
  79. */
  80. public String getTarget();
  81. public void setTarget(String target);
  82. /**
  83. * Advisory content type. See the type attribute definition in HTML 4.0.
  84. */
  85. public String getType();
  86. public void setType(String type);
  87. /**
  88. * Removes keyboard focus from this element.
  89. */
  90. public void blur();
  91. /**
  92. * Gives keyboard focus to this element.
  93. */
  94. public void focus();
  95. }