nsIDOMBeforeUnloadEvent.idl 896 B

123456789101112131415161718192021222324252627
  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. /**
  7. * The nsIDOMBeforeUnloadEvent interface is the interface for events
  8. * sent to handlers of the "beforeunload" event. This event is
  9. * non-standard. Interface derived from Microsoft IE's event
  10. * implementation.
  11. *
  12. * http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events.asp
  13. *
  14. */
  15. [builtinclass, uuid(26c83933-a5a4-455e-8c46-69fa24dfa991)]
  16. interface nsIDOMBeforeUnloadEvent : nsISupports
  17. {
  18. /**
  19. * Attribute used to pass back a return value from a beforeunload
  20. * handler
  21. */
  22. attribute DOMString returnValue;
  23. };