Cara Membuat Back to Previous Button di Elementor

ยท

back to previous page button elementor
back to previous page button elementor

Membuat back to previous button di Elementor – ini adalah skrip yang bisa ditambahkan untuk bisa membuat tombol kembali ke halaman sebelumnya (back button) di elementor tanpa harus menekan tombol dari browser bawaan.

berikut ini adalah caranya:

  1. Masuk ke tab Advanced di widget Button, terus isi kolom CSS ID pakai nama, misalnya: “go-back“.
  2. Cari widget HTML di Elementor.
  3. Tempelkan kode JavaScript berikut ke dalam widget HTML tadi.
<script type="text/javascript">
jQuery(document).ready(function() {
 jQuery('#go-back').on('click', function() {
 window.history.go(-1);
 return false;
 });
});
</script>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *