I have a ‘button’, an ‘a’ inside with href=”logout.php”, it won’t logout.
When I have the same code inside ‘div’ tags inside, it does.
Why is this? Feel free to quote URLs, I can find no instructive explanation!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Button tags are expanded
I don’t recall any specification saying you can use links inside a button. Instead, link your Jquery or Javascript to the onclick of the button. Else it becomes completly useless to use a button tag cause what you want is to execute a href and not submit a form…