views:

24

answers:

0

The Really Simple History ( http://code.google.com/p/reallysimplehistory/ ) will fire off event once in Firefox and Chrome, but twice in IE (I am using IE 8). Does any one know why?

<body>

<a href="#abc">abc</a>
<a href="#abcd">abcd</a>
<a href="#page=3&cat=4">page=3 cat=4</a>

<script type="text/javascript" src="json2007.js"></script>
<script type="text/javascript" src="rsh.js"></script>

<script type="text/javascript">
window.dhtmlHistory.create();

var yourListener = function(newLocation, historyData) {
    //do something;
    console.log(newLocation, historyData)
}

window.onload = function() {
    dhtmlHistory.initialize();
    dhtmlHistory.addListener(yourListener);
    console.log("started")

};
</script>