C#/Java - Execute an onclick through C# code (WebBrowser obj)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: C#/Java - Execute an onclick through C# code (WebBrowser obj)

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    C#/Java - Execute an onclick through C# code (WebBrowser obj)

    Hello there,

    I've made this post a day or 2 ago on the C# forums (the language in which i am working), but haven't gotten a respond yet. So i'm hoping (as i suppose this is java) you guys can help me.

    I'm desperately in need of some help with automating a webpage.
    There's this href link i need to click but it's position changes and unfortunately I can't seem to figure out how to trigger the onclick event.

    Code:
    <a href="page/page2" onclick="return multiform(000001,'test')">do something</a>
    I dunno if i can execute it as an InvokeScript or something? Any help would be greatly appreciated.

    Thanks in advance!

  2. #2
    Join Date
    May 2011
    Posts
    41

    Re: C#/Java - Execute an onclick through C# code (WebBrowser obj)

    two questions:

    1.is this within an ASP.NET page?
    2.are you looking to do this client or server side?

  3. #3
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: C#/Java - Execute an onclick through C# code (WebBrowser obj)

    So i'm hoping (as i suppose this is java) you guys can help me.
    Nope, this is Javascript which is not Java. You need the client side scripting forum, I'll ask a mod to move this post for you.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center