Why isn't my back button working in mobile?

LindsayKB
12 years, 8 months ago
When I test out my website on my desktop computer, the back button at the top of the page works great. When I view it on my phone, it won't work. This might be just a general PHP question, but I'm not sure. The HTML code is below. Thank you!

HTML
 <div class="toolbar">
  <?php if(!$MobileJoomla->isHome()): ?>
    <a class="back" href="javascript:history.back(1)"><?php echo JText::_('TPL_MOBILE_IPHONE__BACK'); ?></a>
    <a class="home" href="/<?php echo $home; ?>"><?php echo JText::_('TPL_MOBILE_IPHONE__HOME'); ?></a>
  <?php endif;?>
  </div>
 

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.