161
rated 0 times
[
166]
[
5]
/ answers: 1 / hits: 16241
/ 8 Years ago, thu, july 14, 2016, 12:00:00
I want to make my div flash or highlight just once on a particular click event. I tried the following code
function blink() {
var f = document.getElementById('divId');
setInterval(function() {
f.style.display = (f.style.display == 'none' ? '' : 'none');
}, 500);
}
But I keeps blinking. I want to use just JavaScript.
Any leads?
More From » html