main.html包含有左右两侧,右侧有mainFrame,
left.html 导航都指向target为mainFrame,现在页面A.html点击有一个弹出框页面为B.html,
JqueryDialog.js,此dialog加载的frame为jd_shadow。
A.html和B.html共同引用common.js。
其他common.js会提取A界面的属性和变量,包括表单。
在B.html界面中,调用common.js中方法,此需要引用上下文,即A页面的上下文,
即var context=window.parent.frames['mainFrame'];
对于表单,此为context.document,如果为Js变量,则为context.bianliagn,既可。