Skip to main content
Filter by
Sorted by
Tagged with
2763 votes
37 answers
10.1m views

How do I create an HTML button that acts like a link? So that clicking the button redirects the user to a page. I want it to be accessible, and with minimal extra characters or parameters in the URL.
Andrew's user avatar
  • 241k
1925 votes
17 answers
708k views

When looking at most sites (including SO), most of them use: <input type="button" /> instead of: <button></button> What are the main differences between the two, if any? Are there ...
Aron Rotteveel's user avatar
703 votes
8 answers
501k views

I've got a form, with 2 buttons <a href="index.html"><button>Cancel changes</button></a> <button type="submit">Submit</button> I use jQuery UI's button on them ...
alex's user avatar
  • 492k
187 votes
8 answers
223k views

I've a ListView where every element in the list contains a TextView and two different Buttons. Something like this: ListView -------------------- [Text] [Button 1][Button 2] -------------------- [...
znq's user avatar
  • 45k
78 votes
5 answers
128k views

In JSF 2, what is the difference between h:button and h:commandButton ?
Geek's user avatar
  • 27.4k
170 votes
11 answers
431k views

I have a button (<input type="submit">). When it is clicked the page reloads. Since I have some jQuery hide() functions that are called on page load, this causes these elements to be hidden ...
Ankur's user avatar
  • 51.2k
120 votes
6 answers
274k views

I have a button on my page with this XAML: <Button Content="Button" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="50" Height="50&...
Sepehr Mohammadi's user avatar
395 votes
8 answers
398k views

I need to make a button look like a link using CSS. The changes are done but when I click on it, it shows as if it's pushed as in a button. Any idea how to remove that, so that the button works as a ...
user avatar
0 votes
3 answers
2k views

I have this show/hide button on my website. It works, but on the first time the user needs to double-click it as if the switch is set to "hide" but the element is already hidden... I'd like to edit ...
Louis Chaussé's user avatar
56 votes
12 answers
154k views

I've been working through the Tkinter chapters in Programming Python and encountered a problem where the foreground and background colours of a button will not change. I am working on a Mac OS X 10.6 ...
Anthony Cramp's user avatar
581 votes
19 answers
631k views

I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image. If I use ImageButton I don't even have ...
znq's user avatar
  • 45k
97 votes
10 answers
549k views

I need to extract the details of each column in my table. For example, column "Name/Nr.". The table contains a number of addresses The very last column of each row has a button that lets a user choose ...
chuckfinley's user avatar
  • 2,595
207 votes
6 answers
176k views

I have form with one input for email and two submit buttons to subscribe and unsubscribe from newsletter: <form action="" method="post"> {{ form_newsletter }} <input type="submit" name="...
veena's user avatar
  • 2,113
94 votes
1 answer
384k views

I am trying to use this code for NET.reflector using Reflexil. I am trying to replace code with this: if(Input.GetKeyDown(KeyCode.Keypad5)) { int i = 0; Character localPlayer = PlayerClient....
user3204732's user avatar
236 votes
24 answers
246k views

I'm writing a modal dialog in WPF. How do I set a WPF window to not have a close button? I'd still like for its WindowState to have a normal title bar. I found ResizeMode, WindowState, and ...
Michael Hedgpeth's user avatar
150 votes
3 answers
71k views

For instance, the default button has the following dependencies between its states and background images: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas....
Vit Khudenko's user avatar
  • 28.4k
53 votes
12 answers
519k views

I have the following HTML: <button name="btnG" class="gbqfb" aria-label="Google Search" id="gbqfb"><span class="gbqfi"></span></...
Ripon Al Wasim's user avatar
203 votes
11 answers
1.0m views

I'm trying to display a png image on a <button> element in HTML. The button is the same size as the image, and the image is shown but for some reason not in the center - so it's impossible to ...
Amit Hagin's user avatar
  • 3,264
24 votes
8 answers
51k views

How to prevent multiple form submission on multiple clicks in PHP
Marcel's user avatar
  • 241
90 votes
6 answers
152k views

If I was using an ImageButton with a selector for its background, is there a state I can change which will make it change its appearance? Right now I can get it to change images when pressed, but ...
Joren's user avatar
  • 9,955
72 votes
8 answers
57k views

I'm making an android application, where there is a view composed of hundreds of buttons, each with a specific callback. Now, I'd like to set these callbacks using a loop, instead of having to write ...
user573536's user avatar
  • 2,355
85 votes
6 answers
220k views

I want to change the background color of a button when IsMouseOver == True <Button Command="{Binding ClickRectangleColorCommand}" Background="{Binding Color, Converter={StaticResource ...
Gilad's user avatar
  • 6,625
261 votes
28 answers
194k views

Before the AppCompat update came out today I was able to change the color of buttons in Android L but not on older versions. After including the new AppCompat update I am unable to change the color ...
mail929's user avatar
  • 2,768
53 votes
11 answers
148k views

I have this method in one of my Android Activities: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK) { Log.d("Test", "Back button ...
ingh.am's user avatar
  • 26.9k
159 votes
4 answers
137k views

There are many legends about them. I want to know the truth. What are the differences between the two following examples? <input type='submit' value='text' /> <button type='submit'>text<...
James's user avatar
  • 43.9k

1
2 3 4 5
67