Top "Onclick" questions

An event which occurs when user clicked an object.

How to change button color onclick using javascript only?

I was trying to make the color of the buttons change using onclick and getElementsByClassName and came up with something …

javascript onclick getelementsbyclassname
Add onclick and onmouseover to canvas element

I want to add an onclick, onmouseover and an onmouseout events to individual shapes in a canvas element. I have …

javascript canvas onclick onmouseover
RatingBar onClick

I have a ListView that uses different XML files to create Views and make items out of. One of these …

android onclick rating
call javascript function from haml link_to

I would like to invoke a javascript function (without JQuery) when the onclick even fires from a link_to tag …

javascript onclick haml link-to
How do I get the absolute position of a mouse click from an onClick event on the body?

I am trying to get the absolute position (top and left) of a mouse click relative to the browser/body, …

javascript onclick position absolute
Android SearchView onclick

I have a searchView which looks like this: private void setupSearchView() { mSearchView = (SearchView) getActivity().findViewById( R.id.search_view_neue); …

android onclick searchview
How to make a linkbutton onclick with parameters

HTML : <asp:LinkButton ID="lnk_productImage" runat="server" Text="select" OnClick="viewProductImage('<%#DataBinder.Eval(Container.DataItem,"Id") %&…

c# html parameters onclick linkbutton
Android: How to propagate click event to LinearLayout childs and change their drawable

I would like to create a linear layout which would behave similarly to ImageButton. <LinearLayout android:id="@+id/container" …

android onclick android-linearlayout
Creating an element that can remove it self?

I'm building a lightbox as a school project, and I can't use jQuery. I've got an image. When you click …

javascript javascript-events onclick lightbox removechild
Triggering FancyBox from a DIV onclick();

This question seems to have been asked a lot, but I haven't seen an answer that works. So I have …

jquery html onclick lightbox fancybox