callback/callback-android — Issue #26: window.location removes phonegap
Author: wimpie3
Created: 2011-11-17 09:10:07+00:00
State: open

In my index.html, I have a javascript that adds a menubutton handler like this:

document.addEventListener("menubutton", openMenu, false);

However, when I change the current location with window.location.replace("http://www.google.com"), the handler is not working anymore. It seems like PhoneGap is removed when the current location is changed. Is this possible?