Link two pages with button
Description
The following code shows how to link two pages with button.
Example
<!-- w w w . j ava 2 s. c o m-->
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.7.1.js'></script>
<link rel="stylesheet" type="text/css"
href="http://jquerymobile.com/demos/1.1.1/css/themes/default/jquery.mobile-1.1.1.css">
<script type='text/javascript'
src="http://jquerymobile.com/demos/1.1.1/js/jquery.mobile-1.1.1.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h3>Header</h3>
</div>
<div data-role="content">
<a href="#page2" data-role="button" data-transition="slide">Page
2</a>
</div>
<!-- /content -->
</div>
<!-- /page -->
<div data-role="page" id="page2">
<div data-role="header">
<h3>Header</h3>
</div>
<div data-role="content">
<a href="#" data-rel="back" data-role="button"
data-direction="reverse">Back</a>
</div>
<!-- /content -->
</div>
<!-- /page -->
</body>
</html>