I'm not sure why but, this fixed it on your test page, changing the link to:
HTML Code:
<a href="test link a.htm" onclick="loadintoIframe('myframe', this.href);return false">Link</a>
This is really a better way to write the link because that way, non javascript enabled browsers will be taken to the page. If you do not want that behavior, use:
HTML Code:
<a href="#" onclick="loadintoIframe('myframe', 'test link a.htm');return false">Link</a>
Why is the iframe's display set to 'none'? Is that part of the script or something you decided upon? If you don't do that and do give the iframe a name, you could target it for non javascript browsers:
HTML Code:
<a href="test link a.htm" target="iframeName" onclick="loadintoIframe('myframe', this.href);return false">Link</a>
Bookmarks