0

Hello everybody

I'am trying to execute JavaScript in GeckoWebBrowser
my code is :

Hide Copy Code

 GeckoWebBrowser1.Navigate("javascript:void(" + TextBox2.Text.Replace("""", """""") + ")")`

my JavaScript is :

Hide Copy Code

var r = confirm("Press a button");
if (r == true) {
    x = "You pressed OK!";
} else {
    x = "You pressed Cancel!";
}

but it's doing nothing
can you help me please , Thanks

Edited by Reverend Jim: wrong forum

3
Contributors
4
Replies
16
Views
2 Years
Discussion Span
Last Post by stultuske
0

I've asked that question on several forums but no one know the answer

swaer

0

Hsn_1: one of the reasons that you might not get an appropriate answer, is because you are asking it in the wrong places.

You seem to be confusing between Java and JavaScript.
They're about as much alike as a Car and a Carpet.

When it comes to JavaScript, you may have more succes on the JavaScript forum.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.