Set dialog close button url
Description
The following code shows how to set dialog close button url.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!-- ww w . java2s. c o m-->
$(document).ready(function () {
$('a[title="Close"]').attr("href","http://www.java2s.com");
});
});//]]>
</script>
</head>
<body>
<div data-role="dialog" id="pageId">
<div data-role="header" data-theme="c">
<h2>your Heading</h2>
</div>
<div data-role="content">
<p>Your Message.</p>
</div>
</div>
<div data-role="page" data-theme="b" id="b">
<div data-role="header">
<h1>test 123</h1>
</div>
<div data-role="content">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
<a href="#a" data-role="button">close</a>
</div>
<div data-role="footer">footer</div>
</div>
</body>
</html>