BodyElement.hx 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * Copyright (C)2005-2013 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated, do not edit!
  23. package js.html;
  24. /** DOM body elements expose the <a href="http://www.w3.org/TR/html5/sections.html#the-body-element" target="_blank" rel="external nofollow" class=" external" title="http://www.w3.org/TR/html5/sections.html#the-body-element">HTMLBodyElement</a> (or
  25. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML">HTML 4</a></span> <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443" target="_blank" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443" rel="external nofollow" class=" external"><code>HTMLBodyElement</code></a>) interface, which provides special properties (beyond the regular <code><a rel="custom" href="/api/js/html/Element">element</a></code>
  26. object interface they also have available to them by inheritance) for manipulating body elements.<br><br>
  27. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/HTMLBodyElement">MDN</a>. */
  28. @:native("HTMLBodyElement")
  29. extern class BodyElement extends Element
  30. {
  31. /** Color of active hyperlinks. */
  32. var aLink : String;
  33. /** <p>URI for a background image resource.</p> <div class="note"><strong>Note:</strong> Starting in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4)
  34. , this value is no longer resolved as a URI; instead, it's treated as a simple string.</div> */
  35. var background : String;
  36. /** Background color for the document. */
  37. var bgColor : String;
  38. /** Color of unvisited links. */
  39. var link : String;
  40. /** Reflects the
  41. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onbeforeunload">onbeforeunload</a></code>
  42. HTML&nbsp;attribute value for a function to call when the document is about to be unloaded. */
  43. var onbeforeunload : EventListener;
  44. /** Reflects the
  45. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onhashchange">onhashchange</a></code>
  46. HTML&nbsp;attribute value for a function to call when the fragment identifier in the address of the document changes. */
  47. var onhashchange : EventListener;
  48. /** Reflects the
  49. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onmessage">onmessage</a></code>
  50. HTML&nbsp;attribute value for a function to call when the document receives a message. */
  51. var onmessage : EventListener;
  52. /** Reflects the
  53. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onoffline">onoffline</a></code>
  54. HTML&nbsp;attribute value for a function to call when network communication fails. */
  55. var onoffline : EventListener;
  56. /** Reflects the
  57. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-ononline">ononline</a></code>
  58. HTML&nbsp;attribute value for a function to call when network communication is restored. */
  59. var ononline : EventListener;
  60. /** Reflects the
  61. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onpopstate">onpopstate</a></code>
  62. HTML&nbsp;attribute value for a function to call when the user has navigated session history. */
  63. var onpopstate : EventListener;
  64. /** Reflects the
  65. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onresize">onresize</a></code>
  66. HTML&nbsp;attribute value for a function to call when the document has been resized. */
  67. var onresize : EventListener;
  68. /** Reflects the
  69. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onpopstate">onpopstate</a></code>
  70. HTML&nbsp;attribute value for a function to call when the storage area has changed. */
  71. var onstorage : EventListener;
  72. /** Reflects the
  73. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body#attr-onunload">onunload</a></code>
  74. HTML&nbsp;attribute value for a function to call when when the document is going away. */
  75. var onunload : EventListener;
  76. /** Foreground color of text. */
  77. var text : String;
  78. /** Color of visited links. */
  79. var vLink : String;
  80. }