<script>
function goBack()
{
window.history.back()
}
</script>
<body>
<button onclick="goBack()">Go Back</button>
</body>
This will go back to previous page. If You want to move to any other page then you have to pass its Url in Window.Open() function
Thank You.