I need to block back button in browser. i know html code but i want it in haml
Can anyone convert this html code into haml code:
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
window.history.forward();
function noBack() {
window.history.forward();
}
</SCRIPT>
</HEAD>
<BODY onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
<a href="new1.html"> new1 </a>
<a href="new2.html"> new2 </a>
</BODY>
</HTML>