Remove text from back button
Description
The following code shows how to remove text from back button.
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">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w w w .j a va2s. c o m-->
$(document).on('pagebeforeshow', function () {
$(this).find('a[data-rel=back]').buttonMarkup({
iconpos: 'notext'
});
});
});//]]>
</script>
</head>
<body>
<div id="home" data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>header</h1>
</div>
<div data-role="content">
Go to <a href="#page2">Page2</a>
</div>
</div>
<div id="page2" data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content"></div>
</div>
</body>
</html>