////////kj.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>kj</title>
    <style type="text/css">
    body{margin:0px;}
    </style>
    <meta http-equiv="content-type" content="text/html;charset=GB-2312" />
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" width="950" height="580">
        <tr>
            <td>
                <iframe src="a.htm" width="160" height="620" frameborder="0" marginheight="0"
                    marginwidth="0" scrolling="no" id="iframe_head"></iframe>
            </td>
            <td>
                <iframe src="" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto"
                   id="iframe_item" width="790"></iframe>
            </td>
        </tr>
    </table>
</body>
</html>/////a.html<html>
<head>
<title></title>
<script type="text/javascript">
function callPage()
{
   var url=document.getElementById(txtUrl).value;
     parent.document.getElementById("iframe_item").src=url;  }
</script>
</head>
<body>
<div>
<input id="txtUrl" style="width: 374px" type="text" /></td>
<input type="button" id="bt1" value="确定" onclick="callPage();"/></div>
</body>

解决方案 »

  1.   

    ----------------------kj.html 
    <html> 
    <head> 
    <title>kj</title> 
    <meta http-equiv="content-type" content="text/html;charset=GB-2312" /> 
    </head > 
    <body> 
    <iframe name="top" target="main" src="a.html" width="200" height="600" frameborder="0"></iframe > 
    <iframe name="main" src="" width="100%" height="600" frameborder="0"></iframe>
    </body> 
    </html> 
    ------------------a.html 
    <html> 
    <head> 
    <title>a</title> 
    <script type="text/javascript" > 
    function gourl(){
    parent.main.location=document.getElementById("text1").value

    </script> 
    </head> 
    <body> 
    <div> 
    <input id="text1" size="30" />
    <input type="button" value="打开地址" onclick="gourl()" /> 
    </div> 
    </body>
      

  2.   

    ----------------------kj.html  
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head><frameset rows="80,*" frameborder="no" border="0" framespacing="0">
        <frame src="a.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
        <frame src="" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>----------------------a.html 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head><body>
    <label>
    <input type="text" name="textfield" id="textfield" />
    </label>
    <input type="submit" name="button" id="button" value="提交" onclick="top.document.getElementById('mainFrame').src=document.getElementById('textfield').value" />
    </body>
    </html>
      

  3.   

    onclick="window.open('a.html','mainFrame')";
      

  4.   


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form runat="server">
        <iframe name="top"  src="a.aspx" width="100%" height="150"> </iframe>  
        <iframe name="main" src="" width="100%" height="600"> </iframe >
        </form>
    </body>
    </html>
    -----------------------a.aspx--------------<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <script type="text/javascript"  >  
    function test(){ 
    parent.main.location=document.getElementById("text1").value 
    }  
    </script >
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <input id="text1"/>
                <input type="button" value="打开“ onclick="test()" />
            </div>
        </form>
    </body>
    </html>
      

  5.   


    void main(){
    int a,b;
    if (a==b){
    std::cout << a
    }
    }