window.location.href does not work on Windows Phone

1

I have an application made in Cordova that uses window.location.href to transfer two values between pages. Everything works fine on Android, iOS and even in IE, but when I test directly on Windows Phone, it says it can not find the page.

Can you help me? Has anyone had the same problem?

My code is here:

window.location.href = nome + ".html" + '?sessao=' + encodeURIComponent(sessao) + "/" + encodeURIComponent(telefone);
    
asked by anonymous 29.10.2015 / 17:44

1 answer

0

This will not be the best way to transpose page-by-page values. I suggest you take a look at html5 especially in window.localStorage.setItem ('key', 'label') and then to get the value do window.localStorage.getItem ('key')

    
29.10.2015 / 23:54