Questions tagged as 'onclick'

2
answers

How do I turn onclick on my javascript?

Well, I'm doing a game in javascript where I have 100 buttons and I need the value of the button that the user clicked to be searched to validate whether the user hit or not, function minhaFuncao(id){ var alor = documenr.getElementById(id).valu...
asked by 25.06.2017 / 18:09
1
answer

JQuery onclick and focusout

I have my navbar with a search button that calls a slideToogle () and displays a form with an input text inside below my navbar. I want my form to be hidden when I lose focus or the search button is clicked again. So my problem is this, wh...
asked by 21.10.2016 / 06:41
1
answer

Change fragment with click on button inside fragment [duplicate]

I have an activity that has an empty LinearLayout that serves only to 'host' the fragment. This LinearLayout (called layoutFund) is the FragmentTransaction argument to where one of several fragments created separately is 'hosted'. This happens...
asked by 28.06.2016 / 19:40
1
answer

Button with cookie and location

At the top of my page is the cookie: <?php setcookie("agenda","2016");?> At the bottom of the page, without using form, I have the following button: <button class="button button1" onclick="location.href='escolha_sala....
asked by 10.04.2016 / 19:45
1
answer

How to invoke function on the first click of the button and another on the second click

How do I make the first function to be called within the first click of the button, by the event ondblclick(); and the second function in the second click of the same button. I imagine invoking the function of the first click on the b...
asked by 19.05.2016 / 07:57
1
answer

Calling methods from another class

In case I need to call a method of another class to perform an insertion in the database and I have to pass an object of type Usuario as a parameter Code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
asked by 22.08.2015 / 02:13
1
answer

PHP does not execute OnClick return confirm

I'm having trouble executing javascript within the "echo" of PHP, I made some changes and the problem persists. Here is the code I'm using: echo "<a href='excluir.php?id_edital=" . $pegar['id_edital'] . "; onClick='return confirm('Desej...
asked by 30.05.2017 / 15:22
4
answers

Can I use onclick twice? [duplicate]

I have a button and on it I need to use onclick to trigger the (this) function for the javascript but I need to put sound on the button, what do I do?     
asked by 26.06.2017 / 20:49