最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

怎样实现动态加载iframe

来源:懂视网 责编:小采 时间:2020-11-27 20:22:39
文档

怎样实现动态加载iframe

怎样实现动态加载iframe:服务器端生成 <% if ..... then response.write "<iframe name=frame1 src=xxx.html width=0 height=0>" end if if ..... then response.write "<iframe name=frame2 s
推荐度:
导读怎样实现动态加载iframe:服务器端生成 <% if ..... then response.write "<iframe name=frame1 src=xxx.html width=0 height=0>" end if if ..... then response.write "<iframe name=frame2 s

服务器端生成
<%
if ..... then
response.write "<iframe name=frame1 src=xxx.html width=0 height=0>"
end if
if ..... then
response.write "<iframe name=frame2 src=xxx.html width=0 height=0>"
end if
%>

客户端生成
<p id=p1></p>
<script language=vbscript>
if .... then
 str="<iframe name=frame1 src=xxx.html width=0 height=0>"
end if
if ... then
str=str&"<iframe name=frame2 src=xxx.html width=0 height=0>"
end if
生成IFRMAE
document.all("p1").innerhtml=str

给IFRAME里面的表单控件赋值。
document.all("frame1").document.all("xxx").value=xxx


提交时
document.all("frame1").form1.submit()
document.all("frame2").form1.submit()
</script>


以上方法说明了一个思路,没有经过验证,请自行验证。

文档

怎样实现动态加载iframe

怎样实现动态加载iframe:服务器端生成 <% if ..... then response.write "<iframe name=frame1 src=xxx.html width=0 height=0>" end if if ..... then response.write "<iframe name=frame2 s
推荐度:
标签: 设置 添加 加载
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top