<!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>
<title> New Document </title>
<meta name="Generator" content="EditPlus"/>
<meta name="Author" content="cybernaute(思客)"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<link rel="stylesheet" type="text/css" href=""/>
<script language="javascript">
function display() /*----*/
{
   var str = document.getElementById("iframe_1");
 str.src = "http://sina.com.cn";
}
</script>
</head><body>
 <input id="input_1" type="button" name="" value="转到新浪" onClick="display();">
 <iframe name="iframe_1" src="http://www.csdn.net" width="100%" height="300"></iframe>
</body>
</html>不知道是不是这样,
全当抛砖引玉