Location.hx 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. /** Returns a <a href="#Location_object"> <code>Location</code> object</a>, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.<br><br>
  25. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/window.location">MDN</a>. */
  26. @:native("Location")
  27. extern class Location
  28. {
  29. var ancestorOrigins(default,null) : DOMStringList;
  30. /** the part of the URL that follows the # symbol, including the # symbol.<br> You can listen for the <a title="en/DOM/window.onhashchange" rel="internal" href="https://developer.mozilla.org/en/DOM/window.onhashchange">hashchange event</a> to get notified of changes to the hash in supporting browsers. */
  31. var hash : String;
  32. /** the host name and port number. */
  33. var host : String;
  34. /** the host name (without the port number or square brackets). */
  35. var hostname : String;
  36. /** the entire URL. */
  37. var href : String;
  38. var origin(default,null) : String;
  39. /** the path (relative to the host). */
  40. var pathname : String;
  41. /** the port number of the URL. */
  42. var port : String;
  43. /** the protocol of the URL. */
  44. var protocol : String;
  45. /** the part of the URL that follows the&nbsp;? symbol, including the&nbsp;? symbol. */
  46. var search : String;
  47. function assign( url : String ) : Void;
  48. function reload() : Void;
  49. function replace( url : String ) : Void;
  50. function toString() : String;
  51. }