0% found this document useful (0 votes)
53 views

HTML Button

The document contains HTML code with two buttons - a blue button and a pink button. When each button is clicked, it triggers a server-side function that updates the inner HTML of a paragraph element to display a message indicating which button was clicked.

Uploaded by

Hasnain Ansari
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

HTML Button

The document contains HTML code with two buttons - a blue button and a pink button. When each button is clicked, it triggers a server-side function that updates the inner HTML of a paragraph element to display a message indicating which button was clicked.

Uploaded by

Hasnain Ansari
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

<script runat="server"> Sub button1(Source As Object, e p1.InnerHtml="You clicked the End Sub Sub button2(Source As Object, e p1.

InnerHtml="You clicked the End Sub </script> <html> <body>

As EventArgs) blue button!" As EventArgs) pink button!"

<form runat="server"> <button id="b1" OnServerClick="button1" style="background-color:#e6e6fa; height:25;width:100" runat="server"> Blue button! </button> <button id="b2" OnServerClick="button2" style="background-color:#fff0f5; height:25;width:100" runat="server"> Pink button! </button> <p id="p1" runat="server" /> </form> </body> </html> OUTPUT

Blue button!

Pink button!

You clicked the blue button!

You might also like