Hi there,
I‘m trying to create a binding JavaScript History Back link on a page.
This is the code I’m using in the custom HTML head section, but it doesn't seem to work…
<script>
jQuery(document).on("click", "go-back", function(event) {
history.back();
});
</script>
I’ve set a custom HTML class to the text box – "go-back"
But I can't seem to get it to work. I want it to work like a ‘normal’ HTML link, so when hovering the cursor over the text link, it will change to a ‘hand’ as standard, and when clicked goes back to the previous page.
Does anyone have any thoughts about this?
Thanks, D