iframe的页面,然后获取身份验证页面

时间:2019-07-03 08:09:48

标签: html css iframe

我需要构建嵌入到网站中的HTML页面,在此页面中应使用Windows登录名进行身份验证,并检查是否已选中并获取用户ID,然后显示另一个包含薪水报告的屏幕。

我当前显示的页面正在继续加载

<iframe id="iframe1" src="https://xxxx/index.php" onload="setIframeSrc1(this)" width="0" height="0" border="2"></iframe>
<iframe id="iframe3" src="https://xxx/index.php" onload="on_load(this)" width="0" height="0" border="2"></iframe>
<iframe id="iframe2" src="https://xxx/03.png" width="850" height="550" border="2"></iframe>

<script>
function on_load(iframe3) {
setTimeout(setIframeSrc, 500);
}


function setIframeSrc() {

  var s = "https://xxx/salary_slip.php";
  var iframe2 = document.getElementById('iframe2');
    iframe2.src = s;
}
function setIframeSrc1() {

  var s1 = "https://xxx/index.php";
  var iframe3 = document.getElementById('iframe3');
    iframe3.src = s1;
}

</script>

0 个答案:

没有答案