Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Matrix_Lee
Beginner
48 Views

How can I get current active page or subpage id? and what is the suggested way to go previous page or subpage with back button?

Jump to solution

How can I get current active page or subpage id?

and what is the suggested way to go previous page(or subpage) with back button, esc key or right click?

If I would like to add a next page(or subpage) button, what is the suggested way?

Thank you!

Matrix

Tags (2)
0 Kudos
1 Solution
Thomas_B_6
New Contributor I
48 Views

You can get the current page name with:

var myCurrentPage = window.location.hash;

Best,

Tom

View solution in original post

2 Replies
Thomas_B_6
New Contributor I
49 Views

You can get the current page name with:

var myCurrentPage = window.location.hash;

Best,

Tom

View solution in original post

Matrix_Lee
Beginner
48 Views

Dear Tom,

Yes, it works.

Thank you very much.

Matrix

Reply