Load Children page with back button

Description

The following code shows how to load Children page with back button.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.css">
</head><!--   w  w  w .j  a v  a 2s .c  o  m-->
<body>
  <div data-role="page">
    <div data-role="header">
      <a data-rel="back">Back</a>
      <h1>Page Title</h1>
    </div>
    <!-- /header -->
    <div data-role="content">
      <p>Cat1 - Item1 detail</p>
    </div>
    <!-- /content -->
    <div data-role="footer">
      <h4>Page Footer</h4>
    </div>
    <!-- /footer -->
  </div>
  <!-- /page -->
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme