WebSite X5Help Center

 
Constantinos L.
Constantinos L.
User

Back Button  en

Автор: Constantinos L.
Просмотрено 2508, Подписчики 1, Размещенный 0  
Тэги: back,button

Can anyone tell us if we can add a button in a page which when clicking on it, to take us back to the previous webpage we were looking at? 

What we are looking for is exaclty like the "back arrow" of the browsers.

Kind Regards,

Размещено
2 Ответы
Paul M.
Paul M.
Moderator

Hello Constantinos,

There are various ways to do this but probably one of the simplest would be to use code similar to the following pasted in an HTML Object on the page in question:

<html>
<head>
<script>
function goBack()
  {
  window.history.back()
  }
</script>
</head>
<body>

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

</body>
</html>

You could obviously adapt this code to suit your own needs as required.

Hope this helps,

Paul

Читать больше
Размещено От Paul M.
Constantinos L.
Constantinos L.
User
Автор

I will try this Paul,

Thank you so very much!!!

Smile

Читать больше
Размещено От Constantinos L.