|
楼主 |
发表于 2013-2-20 14:03:36
|
显示全部楼层
本帖最后由 PHPtits 于 2013-2-20 14:05 编辑
roger 发表于 2013-2-19 15:10 
wb.document.location.href = "http://www.baidu.com"
直接写就是了。
我是想要..打开的页面里JS获取常量是能自定义..
下面就是想改变 window.screen.width返回的值- //创建简单Web窗体
- import web.form;
- /*DSG{{*/
- var winform = ..win.form( bottom=176;parent=...;text="aardio Form";right=292;scroll=1 )
- winform.add( )
- /*}}*/
- //创建web窗体
- var wb = web.form( winform, , , ,true/*securityTrusted*/ )
- var html = /**
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <div id="myId"></div>
- <script type="text/javascript">
- document.getElementById("myId").innerHTML = "分辨率的宽高:"+ window.screen.width;
- </script>
- </body>
- </html>
- **/
- wb.write( html );
- winform.show();
- //进入消息循环
- win.loopMessage();
复制代码 |
|