call javascript function on hyperlink click

前端 未结 9 1950
陌清茗
陌清茗 2020-11-30 21:13

I am dynamically creating a hyperlink in the c# code behind file of ASP.NET. I need to call a JavaScript function on client click. how do i accomplish this?

9条回答
  •  野性不改
    2020-11-30 21:49

    If you do not wait for the page to be loaded you will not be able to select the element by id. This solution should work for anyone having trouble getting the code to execute

    
    
    Delete Document
    

提交回复
热议问题