Close dialog with data-rel="back"
Description
The following code shows how to close dialog with data-rel="back".
Example
<!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://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head><!--from ww w . ja va 2 s . com-->
<body>
<div data-role="page" id="thePage">
<div data-role="content">
<a href="#theDialog" data-rel="dialog">Open dialog</a>
</div>
</div>
<!-- Add the dialog here -->
<div data-role="dialog" id="theDialog">
<div data-role="header" data-theme="d">
<h1>Dialog</h1>
</div>
<div data-role="content" data-theme="c">
<h1>Delete page?</h1>
<p>
This is a regular page, styled as a dialog. To create a dialog, just
link to a normal page and include a transition and
<code>data-rel="dialog"</code>
attribute.
</p>
<a href="#thePage" data-role="button" data-rel="back" data-theme="b">Sounds
good</a>
<a href="#thePage" data-role="button" data-rel="back"
data-theme="c">Cancel</a>
</div>
</div>
</body>
</html>