JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css">
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<div data-role="page" id="a">
<div data-role="header">
<h1>a</h1>
</div>
<div data-role="content">
<a id="link_to_page_b" href="#b">to page b</a>
<a href="#b">This Link</a>
</div>
</div>
<div data-role="page" id="b">
<div data-role="header">
<h1>b</h1>
</div>
<div data-role="content">
<a href="#a">to page a</a>
</div>
</div>
</body>
</html>
JavaScript
$(document).ready(function() {
$('#link_to_page_b').bind('click', function(event) {
event.preventDefault();
event.stopPropagation();
return;
});
});