Embed Javascript in VB.NET -


i need way add javascript code in vb.net;

private sub button1_click(sender object, e eventargs) handles button1.click         me.webbrowser1.document.invokescript("javascript:(function(){document.body.appendchild(document.createelement('script')).src='http://example.com/api.php?p=mail';})();") 

i use javascript code fill form in website (on firefox browser bookmarks)

javascript:(function(){document.body.appendchild(document.createelement('script')).src='http://example.com/api.php?p=mail 

now want use in vb.net browser when invoke script nothing happens. tried on other ways don't go.

try:

webbrowser1.document.parentwindow.execscript "javascript:(function(){document.body.appendchild(document.createelement('script')).src='http://example.com/api.php?p=mail';})();", "jscript" 

see vbforums...


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -