Questions tagged «javascript»

1
通过默认的GNOME-Webbrowser自动登录到网页
我正在尝试使用Raspbian的默认Web浏览器调用这样的HTML页面,它仅引导我进入默认的登录页面。 桌面上的Midori也没有。 当在桌面上使用Firefox或Google Chrome调用完全相同的页面时,它就可以正常工作。 首先,我有: <body onLoad="doLogin()"> 行为完全相同,但可以在Firefox和Chrome上使用。有什么办法可以通过raspbian上的内置浏览器完成此任务? <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script> <!-- function doLogin() { document.form1.action="https://ip/sub/main.html?page=map_info&id=177"; document.form1.submit(); } //--> </script> </head> <body > <form name="form1" id=form1 method="post"> <input type="hidden" name="process" value="login"> <input type="hidden" name="page" value="start"> <input type="text" name="user" value="User"> <input type="password" name="password" value="Pass"> </form> …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.