<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Iframe Comm Test</title>
<script type="text/javascript" src="/includes/floatbox/floatbox.js?v=417"></script>

<script type="text/javascript">//<![CDATA[
function finish() {
// on exit, write the text value to the parent doc
    parent.fb$('comm_text').value = fb$('iframe_comm_text').value;
    fb.end();
};
//]]></script>

</head>
<body style="margin:25px; background:#eee;">
<p>Demonstration of exchanging info between the host page and a floatboxed iframe.</p>
<p>The text you entered on the host page should be in the input field below.
Change the text here to update the host page.</p>

<p>
<input type="text" id="iframe_comm_text" size="6" />
<button type="button" onclick="finish()" >OK</button>
</p>

<script type="text/javascript">//<![CDATA[
// on start, read the text value from the parent doc
fb$('iframe_comm_text').value = parent.fb$('comm_text').value;
//]]></script>

</body>
</html>