onlycode.org

javascript
jquery
html
css
angularjs
node.js
ajax
html5
php
json
arrays
google-chrome
dom
regex
reactjs
ecmascript-6
javascript-events

your's history:
enabling backfwd key eve...

Enabling back/fwd key events for an Ajax Application, just only code

javascript | javascript-events | url-rewriting | hashchange

edit
var lastHash = '';

function pollHash() {
    if(lastHash !== location.hash) {
        lastHash = location.hash;
        // hash has changed, so do stuff:
        alert(lastHash);
    }
}

setInterval(pollHash, 100);

28
Christoph, 10.03.2009 13:54

Add your just only code

your name:    



If you need full text click here

Some similar links Enabling back/fwd key events for an Ajax Application ↓:
Is it possible to simulate key press events programmatically?

Intercepting call to the back button in my AJAX application: I don't want it to do anything!

Cross-browser way to get automatically repeating keydown events when key is held down

Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser



This project is created for those who just need only code, wihout maaaaaaaaaaany words.