0

如何转发我的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>
4

1 回答 1

4

如果您想在点击时重定向,请删除<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;
于 2013-05-20T16:54:30.713 回答