站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题javascript 框架间函数传递

javascript 框架间函数传递

摘要: javascript 框架间函数传递
<textarea readonly style="border:none;font-family:Courier New;line-height:150%;width:760px;overflow-y:visible">

/*********index.htm*******主文件

<head>

Untitled Document
</head>





&lt;body&gt;<BR>&lt;/body&gt;


/************left.htm

<body>
<input type="submit" name="Submit" value="Submit" onClick="testFunc('hello')">

<script language="javascript">
function testFunc(args){
parent.mainFrame.rightFunc(args);
}
</script>
</body>


/*********right.htm

<body>

<script language="javascript">
function rightFunc(args){
alert(args);
}
</script>
</body>


</textarea>
↑返回目录
前一篇: 调试工具系列--javascript的追踪者(tracer)实现
后一篇: My first javascript file on xml.