In Which Event I can access frappe.route_options in the newly opened page and how?

For example: I have triggered the below code on a button click, how can i access the frappe.route_options in the Payment Receive doc?

frappe.route_options = { key1: value1, key2: value2 };
frappe.open_in_new_tab = true;
frappe.set_route('payment-receive', 'new-payment-receive');

Please check the reference: Pass arguments from one doc to another through custom client script/custom button - #2 by NCP

with this solution frappe.route_options.item_code is only accessible inside current page not in the new page.