For example, if I want to capture an icon for my cursor, in CSS I would use this:
div { cursor: -moz-grabbing; cursor: -webkit-grabbing; cursor: grabbing; }
But let's say I want to implement this using JavaScript, but I can still cover all three, how do I do this? I just assign them in three lines - is JavaScript rolling back to its previous destination?
document.getElementById('theDiv').style.cursor = '-webkit-grabbing'; document.getElementById('theDiv').style.cursor = '-moz-grabbing'; document.getElementById('theDiv').style.cursor = 'grabbing';
javascript css vendor-prefix
ayjay
source share