Back dari history browser

Copy-paste Script berikut :

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>

Copy-paste HTML berikut :

<input type="button" value="Back" onclick="goBack()" />

Jadinya :


Atau tampilan berbentuk biasa :

<span style="cursor:pointer;color:yellow;" onclick="goBack()">Back</span>

Jadinya :Back


Alhamdulillah

0 comments:


Posting Komentar


Creative Commons License
Back dari history browser by Nano Yulianto is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at http://nanoyulianto.blogspot.com/2010/12/back-dari-history-browser.html.
Permissions beyond the scope of this license may be available at http://nanoyulianto.blogspot.com/.