Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to invoke Anchor tag click event without clicking in asp.net

How to invoke Anchor tag click event without clicking in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nettutorial
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nekkantidivya
    wrote on last edited by
    #1

    Hi, I am working on a asp.net application. In this I want a javascript function which have to invoke Anchor tag click event without clicking in asp.net. If anyone have any idea to do this please reply me. Thanks in advance.

    S A 2 Replies Last reply
    0
    • N Nekkantidivya

      Hi, I am working on a asp.net application. In this I want a javascript function which have to invoke Anchor tag click event without clicking in asp.net. If anyone have any idea to do this please reply me. Thanks in advance.

      S Offline
      S Offline
      saini arun
      wrote on last edited by
      #2

      Didn't checked but seems to be useful. http://urenjoy.blogspot.com/2009/07/set-divs-all-anchor-tags-onclick-event.html[^]

      1 Reply Last reply
      0
      • N Nekkantidivya

        Hi, I am working on a asp.net application. In this I want a javascript function which have to invoke Anchor tag click event without clicking in asp.net. If anyone have any idea to do this please reply me. Thanks in advance.

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        use location.href=document.getElementById('myanchor').href; I think this is what you needed. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Simplify Code Using NDepend
        Basics of Bing Search API using .NET
        Microsoft Bing MAP using Javascript

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups