button tag

Ads
 

button tag

how do i change button color to black. meant to say i want black button with white text on it

View Answers

December 24, 2010 at 2:50 PM

Hi Friend,

Try the following code:

<html>
<script>
function getMes(){
var message=document.getElementById('msg').value;
alert(message);
}
</script>
<body>
Enter Message: <input type="text" id="msg"><br>
<input type="button" value="Submit" style="background-color:black; color:white;" onclick="getMes();">
</body>
</html>

Thanks


December 24, 2010 at 3:03 PM

thanks for your reply. i could do it in this way

<button style="background-color:black"> text</button>

now my question is i have say 4 buttons arranged in 2X2 matrix i need to navigate among them using arrow keys how do i do it. now i have tab navigation. but i want arrow key navigation.


December 24, 2010 at 3:27 PM

how do i post code snippet?


December 24, 2010 at 3:31 PM

<button style="background-color:black;width:160;height:120;>text </button>

but this code will not resize the button why?

Ads









Related Tutorials/Questions & Answers:
button tag
button tag  how do i change button color to black. meant to say i want black button with white text on it   Hi Friend, Try the following... Message: <input type="text" id="msg"><br> <input type="button" value
HTML5  button tag, Implementation of button &lt;button&gt;tag.
HTML5  button tag, Implementation of button <button>tag. Introduction: In this section, we will introduce you to the button <button> tag. Button tag is used for showing button on screen or at browser. It is a pair
Advertisements
HTML5 button tutorial, Example of form and formaction attribute of button.
the use of form and formaction attribute of button tag. If form attribute presents in button. It specifies related form. The action attribute of form tag...;nbsp; button tag in HTML5.</b></p> <form id="form1
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can we retriving dat from database, capturing data, moving to next page.. etc
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can be retriving dat from database, capturing data, moving to next page.. etc
Struts2.2.1 radio Tag Example
Struts2.2.1 radio Tag Example The radio tag is a UI tag that render a radio button input field. The following Example will shows how to implement the radio tag in the Struts2.2.1 -- First we create a JSP file named RadioTag.jsp
UIButton sender tag
UIButton sender tag  Hi, How to get the tag of button? I have several buttons and one event is mapped to all the buttons, I want to get the UIButton sender tag. Thanks
UIButton sender tag
UIButton sender tag  Hi, How to get the tag of button? I have several buttons and one event is mapped to all the buttons, I want to get the UIButton sender tag. Thanks
UIButton sender tag
with the help of tag id of the button? Thanks   HI, You can typecast the sender object into button and then get the tag. Following code show how to do...* myButton = (UIButton*)sender; NSLog(@"Button Tag is: %d",myButton.tag
wnidows button
wnidows button   How to handle windows back and forward button in struts applications, without using java script
radio button
radio button  On selecting a radio button, it should open a aspx page
html button
html button  when i click the submit button the entered data will be displayed below the submit button please help me
coding of button
coding of button  What is code of fetching the value of button in a textbox using javascript
flogin button
flogin button  how to pass redirctt url for flogin button...and to retrieve parameters that are passed in that url..to store in our database
create a button
create a button  i have created button inhtml but my jsp is not working,so can u guide me
Back button
Back button  how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page
Print Button
Print Button  i want the source code for printing details of jform.. so plz help me for source code of print button
tag handler
tag handler  what is the diff bt simple and classic tag? which is more benifit to implement the handler? can we make use of any of these two to imlement the tag handler
uikeyboard done button/return button
uikeyboard done button/return button  Hi everyone!!! Just worried about ..how to return the UIKeyboard on done or return button click in my iPhone... to return the uikeyboard on done button click. Do not forget to call <
Query on radio button
Query on radio button  I am having a multiple row in jsp page.They are dynamically coming. For each row there is one radio button. I want to select... are displayed in the jsp page using bean tag. Please provide me some suggestion
changing selection color of <button>
changing selection color of   dear all, i have loaded image in border less button tag when button is selected with tab key i get brown color... valign=middle > <figure> <button style="background-color:black
Struts2 tag
Struts2 tag  function of hidden tag?   Hi Friend, <s:hidden> tag create a hidden value field.It means it stores the value but cannot be visible. For more information, visit the following link: Struts2 Tutorial
The input tag
In this tutorial, you will learn about the input tag of Spring form tag library
The checkboxes tag
In this section, you will learn about checkboxes tag of Spring form tag library
The radiobuttons tag
In this section, you will learn about radiobuttons tag of Spring form tag library
The select tag
In this section, you will learn about the select tag of Spring form tag library
The options tag
In this section, you will learn about the options tag of Spring form tag library
The textarea tag
In this section, you will learn about the textarea tag of Spring form tag library
The password tag
In this section, you will learn about the password tag of the Spring form tag library
The radiobutton tag
In this section, you will learn about radiobutton tag of Spring form tag library
The option tag
In this section, you will learn about the option tag of Spring form tag library

Ads