Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Sienna Hughes   on Oct 08 In Asp.net Category.

  
Question Answered By: Reginald Thomas   on Oct 08

I am encountering a peculiar problem. On a button  click, I have added the following code.


btnNew.Attributes["onclick"] = "return alert('Great to meet you!')";

But the issue is when I click the nuttom the 1st time, I don't get any message  but on further clicks  I do get this message. Does anybody have any idea as to why this is happening?

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Add javascript to a button Or get search suggestion and latest updates.


Tagged: