2012-07-26 204 views
1

嗨我想從一個頁面導航到另一個頁面而不需要Ajax。用ajax我們可以使用$.mobile.changePage('test.html')但我的目標是blackberry5 +版本。還有其他選項可用,而不是window.location<a href="test.html">。任何建議將不勝感激。從一個頁面導航到另一個頁面的選項

+1

我在這裏詳細回答http://stackoverflow.com/questions/11663279/window-location-not-work-properly – 2012-07-26 09:15:06

+0

@Coder_sLaY感謝您的詳細回覆。讓我檢查一下,我會回來的。再一次謝謝你。 – PPD 2012-07-26 09:18:13

回答

0

不知道我明白,但onclick =「setLocation('newurl.html');」是另一種方法?

1

嘗試:

window.location.href =「test.html」; OR:

window.location.assign(「test.html」); window.location.replace(「test.html」);

相關問題