---
title: "jQuery Mobile “Error Loading Page”"  
description: "jQuery Mobile “Error Loading Page”"  
author: "Anonymous User"  
published: 2013-04-10  
updated: 2013-04-15  
canonical: https://www.mindstick.com/forum/753/jquery-mobile-error-loading-page  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# jQuery Mobile “Error Loading Page”

Hi Everyone!\
I am using Jquery1.8.2 and Jquery-[mobile](https://www.mindstick.com/articles/310668/reasons-why-you-should-choose-custom-mobile-app-development-for-your-business) 1.1\
When i [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) on Logout [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) i have to goto the [Home page](https://answers.mindstick.com/qa/95562/how-do-i-change-the-safari-home-page-on-a-mac). I am able get the home page but before going back to the home page got the "[Error Loading](https://answers.mindstick.com/qa/50962/why-does-facebook-keep-crashing-error-loading-on-my-iphone-6s-plus-and-how-to-fix-it) Page" message.\
**Test.html**\

```
<body>    <div data-role="page">      <div data-role="header" data-theme="b" >          <h1> Success Page </h1>           <a data-role="button" id="logoutbtn" data-theme="b">Logout</a>       </div><!-- /header -->       <div data-role='content'>                </div></div></body>
```

**test.js**\

```
$(document).ready(function(){   $("#logoutbtn").click(function () {         document.location.href = "Home.html";});});
```

\
Please help me out on this.

## Replies

### Reply by Vijay Shukla

Hi!\
Instead of\
document.location.href = "/Home.html";\
try as below\
document.location.href = "./Home.html";Its working fine and able to go back to home [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) with out any [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing).

### Reply by AVADHESH PATEL

Hi Ezra!\
You should be using the jquery mobile specific methods.\
$.mobile.changePage("[Home](https://www.mindstick.com/articles/126322/how-to-keep-your-home-safe-while-traveling).html");See document-location-href-location-vs-mobile-changepagelocation


---

Original Source: https://www.mindstick.com/forum/753/jquery-mobile-error-loading-page

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
