Javascript similar to the linked Pages Button

Hey there,

im looking for the JS similar to the linked Button component. I want create a custom navbar and i want to direct to the other pages without reload the hole window. It should only reload the container.

Many thanks in advance!

Hey @toseifert,

This can be done by using window.location.href and only add the path after the host. For example, if navigating from https://tutorials.tadabase.io/javascript#!/page-1 to https://tutorials.tadabase.io/javascript#!/page-2, you can add the following to the JavaScript.

$('.btn').click(function(){
    window.location.href = '/javascript#!/page-2';
});
1 Like