Navigate pages through links
Description
The following code shows how to navigate pages through links.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
</head><!--from w w w .j a v a2 s .c o m-->
<body>
<div data-role="page" id="first">
<div data-role="header" data-id="my-header" data-position="fixed">
<h1>First</h1>
</div>
<!-- /header -->
<div data-role="content">
<p>The content</p>
<p>
View internal page called <a href="#second">second</a>
</p>
</div>
<!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div>
<!-- /footer -->
</div>
<div data-role="page" id="second">
<div data-role="header" data-id="my-header" data-position="fixed">
<h1>Second</h1>
</div>
<!-- /header -->
<div data-role="content">
<p>I'm the second content</p>
<p>
<a href="#first">Back to first</a>
</p>
</div>
<!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div>
<!-- /footer -->
</div>
</body>
</html>