Home > Net > Simulation access web page how to read after js perform value
Simulation access web page how to read after js perform value
Time:09-15
Why I use HttpWebRequest, WebClient, even the WebBrowser request page, also can't read the web page js results after running? Or my method is wrong? The following: how do I read onl oads (after) to the value of the box?
& lt; html> & lt; head>
& lt; Script language="JavaScript" type="text/JavaScript" & gt; Var box="";
The function onl oads () { Var () b=XXXBox=b.b ox; Document. The getElementById (' box '). value=https://bbs.csdn.net/topics/box; Document. The getElementById (' iov) action=webProtocal + + webDomain "://" + "/aa. PHP"; Document. The getElementById (' iov). Submit (); } & lt;/script>
& lt;/head> & lt; The body onl oad="onloads ();"> & lt; Form id="iov" name="iov" action="method=" POST target='iFrame' & gt; & lt; Input type="HIDDEN" id="box" name="box" value="" & gt; & lt;/form> & lt;/body>
& lt;/html>
CodePudding user response:
WebClient HttpWebRequest, is HTML text content, JS right now is just one of the text, the WebBrowser cannot normal execution of the script, may be an error, and you didn't open the WebBrowser errors,