to replicate the click of a link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • balu435
    New Member
    • Jan 2007
    • 13

    to replicate the click of a link

    Hi friends,

    is there a way where by I can programmaticall y click a link in a web page?.if its a button I can use document.formna me.element(i).c lick where element(i) might represent the button.Is there a similar action for a link?

    Thanx in advance,
    Balu435
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    function(){loca tion=somelinkel ement.href}
    or if you have an onclick defined for the link
    function(){retu rn somelinkelement .onclick()}

    Comment

    • balu435
      New Member
      • Jan 2007
      • 13

      #3
      Originally posted by mrhoo
      function(){loca tion=somelinkel ement.href}
      or if you have an onclick defined for the link
      function(){retu rn somelinkelement .onclick()}
      Hi..
      thanx for the reply.
      My qn wasn't proper though..I was trying to click the link from a VBA application.I used the .innertext property to retrieve the name of the link and then used the onclick event to simulate the click event.Its working now.
      Thanx for ur help..

      Comment

      Working...