Skip to content

Commit

Permalink
agregué volver atras con el boton de 404
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnFScha committed Jan 6, 2024
1 parent 0714b33 commit 86de0c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ <h1 class="titleCtn">
<span class="sub1">¡UPS!</span>
<span class="sub2">Algo se rompió</span>
<p>La página que estás buscando fue removida o no está disponible en este momento. Pero no te preocupes, siempre podés volver!</p>
<button >Inicio/¿Volver a intentar?</button>
<button id="back-btn">Inicio/¿Volver a intentar?</button>
</div>
</div>
</main>
<script src="404.js"></script>
</body>

</html>
5 changes: 5 additions & 0 deletions 404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const back = document.getElementById('back-btn')

back.addEventListener('click', () => {
window.history.back()
})

0 comments on commit 86de0c1

Please sign in to comment.