Good day all question how do I open iframe from other page link?

I do not know how to right java I find the script i need and use it.sorry

on my first page i have a link (contact us) when clicked opens a contact form up in a iframe. this is good. on my second page i have a link (Contaci us)who can show me a script that can (when i click on the link on the second page go to the first page and open the iframe with the contact form in it.

Here is the script i found and used.

</script>

<script language="JavaScript">
function showIFrame(url)
{
var container = document.getElementById('container');
var iframebox = document.getElementById('iframebox');
iframebox.src=url;
container.style.display = 'block';
}
</script>


<table border="1">
<td> <a href="#" onClick="showIFrame('http://www.designwebsite.eu.pn');return false;">Click Here</a> </td>
</table>

<div id="container" style="display:none;">
<iframe src="" width="100%" height="300px"name="iframe" id="iframebox"/>
</div></p>

Thank you
shoutout