title: jQuery mobile link multiple html documents
body: <p>I have multiple html documents that share one css stylesheet (not multiple page div sections in one html) for web app project using jQuery mobile framework. 
  All html documents work fine individually but if one page opens from another page's link, all the script and styles do not apply anymore. Is there any way to keep each html page refreshed whenever they are linked? I have tried <code>data-ajax="false"</code> and <code>rel="external"</code> in <code>&lt;a&gt;</code> tags, but they did not work. Your help will be appreciated!</p>
  
  <p>yes, each html has plugins links in the head tags: </p>
  
  <pre><code>&lt;link rel="stylesheet" href="style/custom.css"&gt; 
  &lt;link rel="stylesheet" href="style/jquery.mobile-1.0.1.min.css" /&gt; 
  &lt;script src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt; 
  &lt;script src="js/jquery.mobile-1.0.1.min.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript"&gt;
   $(document).ready(function(event){ 
  //custom script in each html 
  }); 
  </code></pre>
  
  <p>And htmls are linked with  tags in their  tags: </p>
  
  <pre><code>&lt;a href="page1.html"&gt;page 1&lt;/a&gt; 
  &lt;a href="page2.html"&gt;page 2&lt;/a&gt; 
  &lt;a href="page3.html"&gt;page 3&lt;/a&gt;
  </code></pre>
  
  <p>The links work but custom stylesheet and script are not applied anymore when a new html opens from previous page. If I add data-ajax="false" or rel="external" in the  tags, even the links do not work anymore.</p>
  
  <p>Thanks for looking into the code!</p>
  
  <p>PS. Sorry that I am not familiar with jsfiddle and copied my code for two separate html files. If I open page2.html first, the slider works fine. But if I open it from the menu in page1.html, the slider does not work.</p>
  
  <p>This is page1.html:</p>
  
  <pre><code>&lt;!doctype html&gt; 
  &lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /&gt;
  &lt;script src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(event){
      $(document).toggle(
        function(){
        $('.navigation').css("display", "block");},
        function(){
        $('.navigation').css("display", "none");
        });
  });
  &lt;/script&gt;
  &lt;style type="text/css"&gt;
  .navigation{
      position:fixed;
      top:0;
      left:0;
      width:100%;
      height:40px;
      background:#cfcfcf;
      display:none;
  }
  .menu{
      float:left;
      margin: 10px 20px;
      text-decoration:none;
  }
  .main{
      margin: 50px;
  }
  &lt;/style&gt;
  &lt;body&gt;
  &lt;div data-role="page"&gt;
      &lt;div id="page1"&gt;
          &lt;div class="navigation"&gt;
              &lt;a class="menu" href="page1.html"&gt;page 1&lt;/a&gt; 
              &lt;a class="menu" href="page2.html"&gt;page 2&lt;/a&gt; 
          &lt;/div&gt;
          &lt;p class="main"&gt; this is page1 &lt;br&gt; click anywhere&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is page2.html:</p>
  
  <pre><code>&lt;!doctype html&gt; 
  &lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /&gt;
  &lt;script src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(event){
      $(document).toggle(
        function(){
        $('.navigation').css("display", "block");},
        function(){
        $('.navigation').css("display", "none");
        });
  
      $('.slider').change(function(){
          var wid= $(this).val() + "px";
          $('#box').css("width", wid);
      });  
  });
  &lt;/script&gt;
  &lt;style type="text/css"&gt;
  .navigation{
      position:fixed;
      top:0;
      left:0;
      width:100%;
      height:40px;
      background:#cfcfcf;
      display:none;
  }
  .menu{
      float:left;
      margin: 10px 20px;
      text-decoration:none;
  }
  .main{
      margin: 50px;
  }
  
  #box{
      width:10px;
      height:30px;
      margin: 0px 50px;
      background:#000;
  }
  
  &lt;/style&gt;
  &lt;body&gt;
  &lt;div data-role="page"&gt;
      &lt;div id="page2"&gt;
          &lt;div class="navigation"&gt;
              &lt;a class="menu" href="page1.html"&gt;page 1&lt;/a&gt; 
              &lt;a class="menu" href="page2.html"&gt;page 2&lt;/a&gt; 
          &lt;/div&gt;
          &lt;p class="main"&gt; this is page2 &lt;br&gt;adjust box width with slider &lt;/p&gt;
          &lt;div id="box"&gt;&lt;/div&gt;
          &lt;input type="range" class="slider" min="5" max="600" step="1" value="10"/&gt; 
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>