Open Google Trip Planner Dynamic URL results inside a wordpress page and not a new window

I am using a Google Trip Planner for a transit website but the results open up a new window with the trip plotted on a google map.

Unlike this post:
Opening a dynamically built Google URL in new window

Read More

I am looking for the results of the dynamically-created url to open into an existing page inside my WordPress site.

Here is the code for the button:

<input value="Let's Go!" onclick="return buildURL();" type="button" >

Any help would be great.

Related posts