Link page back and forth
Description
The following code shows how to link page back and forth.
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><!-- www .j a v a2 s . c o m-->
<body>
<div data-role="page" id="main">
<div data-role="header">main</div>
<div data-role="content">
<ul data-role="listview">
<li><a href="#other" data-transition="slide">other</a></li>
</ul>
</div>
</div>
<div data-role="page" id="other">
<div data-role="header">other</div>
<div data-role="content">
<ul data-role="listview">
<li><a href="#main" data-transition="slide">main</a></li>
</ul>
</div>
</div>
</body>