手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >动态加载iframe
动态加载iframe
摘要:服务器端生成客户端生成if....thenstr=""endifif...thenstr=str&""endif生成IFRMAEdocume...

服务器端生成 <% 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 %> 客户端生成 <div id=div1></div> <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("div1").innerhtml=str 给IFRAME里面的表单控件赋值。 document.all("frame1").document.all("xxx").value=xxx 提交时 document.all("frame1").form1.submit() document.all("frame2").form1.submit() </script> 以上方法说明了一个思路,没有经过验证,请自行验证。

【动态加载iframe】相关文章:

AspNet中使用JQuery上传插件Uploadify详解

js动态创建及移除div的方法

javascript中动态函数用法

Jquery动态添加输入框的方法

jQuery结合ajax实现动态加载文本内容

js控制网页前进和后退的方法

JavaScript动态添加style节点的方法

JavaScript实现斗地主游戏的思路

AngularJS学习笔记之ng-options指令

javascript实现点击后变换按钮显示文字的方法

精品推荐
分类导航