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 language="JavaScript">
function showIFrame(url)
var container = document.getElementById('container');
var iframebox = document.getElementById('iframebox');
iframebox.src=url; = 'block';

<table border="1">
<td> <a href="#" onClick="showIFrame('');return false;">Click Here</a> </td>

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

Thank you