PHP, javascript around a link

I have a small piece of javascript to get a user to confirm things on my website. I have a link that I also ask them to confirm before proceeding. I've used the 'onclick' function with buttons no problem, but how do I use it on a link? Heres my link: echo"Delete"; And heres my 'onclick': onclick="return confirm('Please confirm you wish to edit these details')"/> Any help would be great!

以上就是PHP, javascript around a link的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准