As Tzury Bar Yochay indicates, you can do this via both CSS and JavaScript.
CSS - Use the cursor
style property, which can be any of several standard values (which is preferred) or your own cursor file (but always include a fall-back using one of the standard values). Here's an example changing the cursor of any element with the "clickable" class to the standard cursor for something you can click:
.clickable {
cursor: pointer;
}
(This should appear in your stylesheet file, or within a style
element in the head
of the document [if you can't use a separate file for some reason].) You can then apply that class to relevant elements.
JavaScript - The style
property on an element exposes CSS styles, so you can do this:
var element = document.getElementById('someid');
element.style.cursor = 'pointer';
...although I generally prefer to do it by adding/removing a class name via the element's className
property (which is a space-delimited list of classes for the element):
var element = document.getElementById('someid');
element.className += " clickable";