W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] onForward and onBackward event and enable/disable Forward and Backward buttons.

From: Biju <bijumaillist@gmail.com>
Date: Sat, 16 Apr 2011 11:12:12 -0400
Message-ID: <BANLkTi=mxPQnOZDtKDoc6ZeU2SwGXyDT4Q@mail.gmail.com>

   setInterval(function(){location='#'+(1*new Date())},0)

At least in Firefox 4 above code make entire history filled with
current url with different hash.
And hence already now a website can make Backward/Forward button useless.


When I am on a web application, my naturally tendency to hit back
button to go back to the previous screen layout. But many times this
screw up an Ajax application as it may totally navigate away from the
application page.

So I want to suggest we should add onBackward and onForward events for
a page which will be triggered when user click the Backward  or
Forward button. This will be triggered before onpagehide and event
handler will be able to cancel the event if needed.
Additionally there should be also a felicity to enable/disable Forward
and Backward buttons.
Also a way for website to know whether currently the Forward and
Backward buttons are visible, as the page may have opened without the
browser chrome toolbars.

Received on Saturday, 16 April 2011 08:12:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:32 UTC