Class HashChangeEvent

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HashChangeEvent extends Event
JavaScript object representing the HashChangeEvent.
See Also:
  • Field Details

    • oldURL_

      private String oldURL_
    • newURL_

      private String newURL_
  • Constructor Details

    • HashChangeEvent

      public HashChangeEvent()
      Creates a new event instance.
    • HashChangeEvent

      public HashChangeEvent(EventTarget target, String type, String oldURL, String newURL)
      Creates a new event instance.
      Parameters:
      target - the event target
      type - the event type
      oldURL - the old URL
      newURL - the new URL
  • Method Details

    • jsConstructor

      public void jsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details)
      JavaScript constructor.
      Overrides:
      jsConstructor in class Event
      Parameters:
      type - the event type
      details - the event details (optional)
    • initHashChangeEvent

      public void initHashChangeEvent(String type, boolean bubbles, boolean cancelable, String oldURL, String newURL)
      Initializes this event.
      Parameters:
      type - the event type
      bubbles - whether or not the event should bubble
      cancelable - whether or not the event the event should be cancelable
      oldURL - the old URL
      newURL - the new URL
    • getOldURL

      public Object getOldURL()
      Returns the old URL.
      Returns:
      the old URL
    • getNewURL

      public Object getNewURL()
      Returns the new URL.
      Returns:
      the new URL