如何用参数转发

How to forward with parameters

本文关键字:转发 参数 何用      更新时间:2023-09-26

如何转发我的wh参数?

<html>
    <body>
        <p id="demo">Please maximize your browser then click OK.</p>
        <button onclick="myFunction()">OK</button>
        <script>
            function myFunction()
            {
                var w=window.innerWidth;
                var h=window.innerHeight;
                x=document.getElementById("demo");
                x.innerHTML="Width: " + w + " Heigth: " + h;
            }
        </script>
        <meta HTTP-EQUIV="REFRESH" content="0; url=http://80.169.28.12:3333/webRDP/start?v=192.168.1.13&u=domain%5C&pf=263&w="***!!w!!***"&h="***!!h!!***"">
    </body>
</html>

如果您想在点击时重定向,请删除<meta/>标签,并在函数末尾添加以下内容:

window.location.href = 'http://80.169.28.12:3333/webRDP/start?v=192.168.1.13&u=domain%5C&pf=263&w='+ w + '&h='+ h;