动态加载iframe_JavaScript
来源:动视网
责编:小采
时间:2020-11-27 20:32:42
动态加载iframe_JavaScript
动态加载iframe_JavaScript:服务器端生成 end if if ..... then response.write end if %> 客户端生成 if .... then str= end if if ... then str=str& end if 生成IFRMAE document.all(div1).innerhtml=str 给IFRAME
导读动态加载iframe_JavaScript:服务器端生成 end if if ..... then response.write end if %> 客户端生成 if .... then str= end if if ... then str=str& end if 生成IFRMAE document.all(div1).innerhtml=str 给IFRAME

服务器端生成
<%
if ..... then
response.write ""
end if
if ..... then
response.write ""
end if
%>
客户端生成
if .... then
str=""
end if
if ... then
str=str&""
end if
生成IFRMAE
document.all("div1").innerhtml=str
给IFRAME里面的表单控件赋值。
document.all("frame1").document.all("xxx").value=xxx
提交时
document.all("frame1").form1.submit()
document.all("frame2").form1.submit()
script>
以上方法说明了一个思路,没有经过验证,请自行验证。
动态加载iframe_JavaScript
动态加载iframe_JavaScript:服务器端生成 end if if ..... then response.write end if %> 客户端生成 if .... then str= end if if ... then str=str& end if 生成IFRMAE document.all(div1).innerhtml=str 给IFRAME