Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 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

Accepted Solutions
Highlighted
New Contributor I
7 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
Highlighted
New Contributor I
8 Views

You can get the current page name with:

var myCurrentPage = window.location.hash;

Best,

Tom

View solution in original post

0 Kudos
Highlighted
Beginner
7 Views

Dear Tom,

Yes, it works.

Thank you very much.

Matrix

0 Kudos