Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery mobile does not add back button?
    text
    copied!<p>My head:</p> <pre><code>&lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="&lt;?php echo base_url();?&gt;/assets/js/vendor/modernizr-2.6.2.min.js"&gt;&lt;/script&gt; &lt;meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0 target-densitydpi=medium-dpi'/&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /&gt; &lt;!--jQuery, mobile options, JQM--&gt; &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt;window.jQuery || document.write('&lt;script src="&lt;?php echo base_url();?&gt;assets/js/vendor/jquery-1.9.1.min.js"&gt;&lt;\/script&gt;')&lt;/script&gt; &lt;script src="&lt;?php echo base_url();?&gt;assets/js/transition.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"&gt;&lt;/script&gt; &lt;script src="http://ricostacruz.com/jquery.transit/jquery.transit.min.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;/assets/css/normalize.css"&gt; &lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;/assets/css/main.css"&gt; &lt;/head&gt; </code></pre> <p>transition.js:</p> <pre><code>$(document).bind("mobileinit", function() { //back button $.mobile.page.prototype.addBackBtn = true; if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } else { $.mobile.defaultPageTransition = 'pop'; } }); </code></pre> <p>Why isn't it being added?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload