【发布时间】:2023-04-01 16:24:01
【问题描述】:
我需要能够从 VBScript 声明 Iframe 的来源。Iframe 在脚本之外声明
I 框架 Synatx:
<iframe src ="" runat ="server" id="iframepdf" scrolling="auto" align= "middle"
marginheight="10px" width="1400px" height="700px">
</iframe>
我的代码:-
<asp:Content ID="content" ContentPlaceHolderID="content" Runat="Server">
<td>
<iframe src ="" runat ="server" id="iframepdf" scrolling="auto" align= "middle"
marginheight="10px" width="1400px" height="700px">
</iframe>
</td>
<script language="vbscript" type="text/vbscript">
dim srcofiframe
</script>
我试过 Document.getElementById("Iframepdf").src=srcofiframe -> 没用
【问题讨论】:
标签: iframe vbscript getelementbyid