Software Archive
Read-only legacy content

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?

Matrix_Lee
Beginner
361 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, 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

0 Kudos
1 Solution
Thomas_B_6
New Contributor I
361 Views

You can get the current page name with:

var myCurrentPage = window.location.hash;

Best,

Tom

View solution in original post

0 Kudos
2 Replies
Thomas_B_6
New Contributor I
362 Views

You can get the current page name with:

var myCurrentPage = window.location.hash;

Best,

Tom

0 Kudos
Matrix_Lee
Beginner
361 Views

Dear Tom,

Yes, it works.

Thank you very much.

Matrix

0 Kudos
Reply