in vb.net how would I click a javascripted button on a webpage?
the standard Document.GetElementById doesn't seem to work.
This is the buttons code
and this is the javascript for its action
How would I have my form button execute this javascript?
the standard Document.GetElementById doesn't seem to work.
This is the buttons code
VB.NET:
<a onclick="FriendCenter.AddFriend('name')" href="#">Add to Friends List</a>
and this is the javascript for its action
VB.NET:
this.AddFriend = function(gamerTag) { gamerTag = $.trim(gamerTag); // trim leading and trailing whitespaces if (gamerTag != "") { fcAction('/en-GB/FriendCenter/SendFriendRequest', gamerTag); } return false; };
How would I have my form button execute this javascript?