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

2011-07-18 Thread Ian Hickson
On Sat, 16 Apr 2011, Biju wrote: > > 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. We essentially already have this ability using onpopstate and onhashchange. It lets authors hook into th

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

2011-04-16 Thread Biju
On Sat, Apr 16, 2011 at 11:14 AM, Ashley Sheridan wrote: > Couldn't that be badly abused by sites that wanted you to force you to use > their navigation > rather than allow you to use back and forwards buttons on your browser? This proposal wont give any more facility to website than they already

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

2011-04-16 Thread Ashley Sheridan
On Sat, 2011-04-16 at 11:12 -0400, Biju wrote: > Hi, > >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. >

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

2011-04-16 Thread Biju
Hi, 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