How to add a back button to your app
In this article, we'll go over how to create a back button that functions the same way as your built-in browser back button
First, we'll need to add an HTML component to the page you want to add a back button
Then we'll need to add the following code to the Source code of the HTML component
And to finish off, we'll need to add the following code to the JavaScript section of the page.
$('.back-btn').on('click',function(){
window.history.back();
});
We'd love to hear your feedback.