如何在webbrowser中设置变量值(javascript中的变量)? [英] how to set Variable value(Variable in javascript ) in webbrowser?

查看:115
本文介绍了如何在webbrowser中设置变量值(javascript中的变量)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用网络浏览器显示来自互联网的页面.
页面中有一个名为"isPost"的javascript变量,其值为"false".
现在如何更改"isPost"的值?
不要告诉我调用javascript函数(已存在于页面中)来更改"isPost"的值.

i use webbrowser to show a page which come from internet.
there is a javascript variable named "isPost" which value is "false" in the page.
now how can i change the value of "isPost"?
don''t tell me to call javascript functions(have existed in page) to change value of "isPost".

推荐答案

liyoubaidu写道:
liyoubaidu wrote:

不要告诉我调用javascript函数(已存在于页面中)来更改"isPost

don''t tell me to call javascript functions(have existed in page) to change value of "isPost


的值
好的,不要.

您还期望如何改变它?您尝试了什么?



Okay, don''t.

How else do you expect to change it? What have you tried?


我可以在页面上放置一个custum js函数,然后再调用js函数吗?
can i put a custum js function into the page,then i call the js function?


这篇关于如何在webbrowser中设置变量值(javascript中的变量)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆