Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Question webbrowser and javascript vb.net ?

Hello,

I would like to know how to make javascript scripts work with the webbrowser.
Because, I made a small program under vb.net to infect via a web page that mine "jsecoin" + "Pop up"

I would like to know how I make it work?

I used this code to block JavaScript error messages.
Code
WebBrowser1.ScriptErrorsSuppressed() = True
May I ask a few questions?
What do you mean by "to make javascript scripts work with the webbrowser" ?
As far as I know, the Webbrowser control is actually IE. And if your IE supports/ JS enabled then you should be fine.
And for the code :
Code
WebBrowser1.ScriptErrorsSuppressed() = True
Try inserting that line on the program's load event.
Are you asking how to inject JavaScript in websites using the default browser of a user or how to use JavaScript in the Webbrowser control? I can't quite tell from your post. Either way, the default Webbrowser control duplicated the Internet Explorer web browsing functionality which is not something you'd want in this day and age. The reasoning behind this is that JavaScript has evolved since Internet Explorer last released and modern versions of JS simlply won't work or display various error messages for which you'd have to transpile your JavaScript to work with older webbrowsers. Besides that, the WebBrowser control is a very resource-hungry control.

I would suggest that you look at other libraries to get up-to-date webbrowsing functionality or instead utilize the power of already existing browsers, in which case I suppose that what you're doing may be considered illegal, depending on what you'd use this for, so I'm not going to provide any more assistance than this.
[Image: vp6iypF.gif]
IE may have some settings in a registry key for this

Edit (maybe this): https://support.microsoft.com/en-us/help...orer-to-ru
[Image: Syr3DlV.png]
(Oct 9, 2019 08:57 PM)D3ath_GuN Wrote:  Hello,

I would like to know how to make javascript scripts work with the webbrowser.
Because, I made a small program under vb.net to infect via a web page that mine "jsecoin" + "Pop up"

I would like to know how I make it work?

I used this code to block JavaScripterror messages.
Code
WebBrowser1.ScriptErrorsSuppressed() = True

Not possible.

I can recommend you looking in to Selenium for .NET instead.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by isuDec 25, 2018 03:53 PM 3 200 Dec 25, 2018 03:53 PM
Last Post: StarZ
[.NET] by botlandSep 27, 2017 01:55 PM 10 346 Sep 27, 2017 01:55 PM
Last Post: botland
[C#] by JASJun 13, 2017 04:07 PM 6 223 Jun 13, 2017 04:07 PM
Last Post: Ninja