Module org.htmlunit

Class HashChangeEvent

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

public class HashChangeEvent extends Event
JavaScript object representing the HashChangeEvent.
Author:
Ronald Brill, Marc Guillemot, Frank Danek
See Also:
  • 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)
    • getOldURL

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

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