works here, no problem.
Dim Javascript As String = "document.forms['fobform']['name'].value='" & "robert" & "';"
webviewextras.executeJavascript(webview1, Javascript)
Sleep(5000)
webviewextras.executeJavascript(webview1, "alert(document.forms['fobform']['name'].value);" )
i put a little page on my server, had a test b4a app load it. wait a few seconds until the dust settles and run the first executeJavascript call.
wait a couple seconds, and you see "robert" magically appear in the name field.
user taps on the submit button, and you see an alert sent by the server indicating that "name=robert" was successfully passed to it.
the first thing that jumped out about the suggestions above was all the quotation marks. unless you're using one of erel's magic smart strings, you can't normally have double quotes as was shown further up this thread. at least for javascript, it's double quotes inside single quotes or vice versa. look closely at how the quotes are handled. note: aside from how the quotes are handled, there are a number of ways to format the javascript command. how i formatted the command was just easier for me to follow.
-go