Find the value of a JavaScript variable

Job ID: 36265660

Budget: $10 – $30 USD

This is probably really simple for a JavaScript expert.

Solution needed to get a variable value from this page: https://davidhardin.consulting/test-call.php/?first_name=Donald&last_name=A%20Test&phone=(800)%20555-1212&state=MI

1) When the page loads an iframe is dynamillay inserted into the DOM.

2) An appointment is booked in the iframe.

2) Iframe reloads to a confirmation page. (example: https://app.greminders.com/t/5081f758/testing/booked/711e46e7-fb63-4ef0-ae5f-cf5d3dad16cf?er=564d41af-2571-4972-b9fd-e3118ba6278d&utm_source )

I have not been able to get the confirmation page src of the iframe. Instead it always returns the original iframe src.

Deliverable:

We need the "?er=" parameter value from the confirmation url. (example: 564d41af-2571-4972-b9fd-e3118ba6278d)

Either:

1) Get the value from the src of the iframe after reload and write it to the console.

OR

2) Look through all the variables on the page and find the one that is used as the ?er= parameter value and write it to the console.

I believe the main problem is cross origin so there may not be a solution. The only place code can be added is on the davidhardin.consulting domain.
Related categories: JavaScript HTML5 jQuery / Prototype