如何通過IE導航到使用JavaScript的URL,我已經嘗試了JavaScript的大部分功能,並且它們不適用於IE。如何通過IE導航到使用JavaScript的URL?
window.location.href = ''; //doesn't work for IE
window.location = ''; //doesn't work for IE
window.open(""); //does work for IE but it opens it in a new tab and I don't want this
我需要幫助。 謝謝。
編輯!
window.location.href = ''; //works well for IE, the problem was that I was using jQuery to build my HTML and solved by: jQuery.mobile.navigate("url.html#subPg");
'window.location.href'是普遍的,當您嘗試使用它時會發生什麼? –
@AlexK。 URL改變了,但是它不能導航,我使用jQuery mobile,在一個HTML頁面中構建整個網站並瀏覽頁面ID – geekslot
啊,'jQuery.mobile.navigate(..)'? –