How to detect which kintone page I am currently in?

I want to call a function only when I am on the detail edit page.

Is there any Kintone function or property that I can use to check the page I am currently on?

Hello annaylee,

 

I’m not sure what you plan to do here, but can you not use the Record Edit Event in Kintone Javascript API?

The event is triggered at the Record Edit page only.

 

Kintone Developer Program - Record Edit Event

https://kintone.dev/en/docs/kintone/js-api/events/record-edit-event/