noun

25 of 60
Other / Desire

whim - A sudden desire or change of mind, especially one that is unusual or unexplained

While standing in the checkout line at the grocery store, Stan bought a pack of gum on a whim.

// Auto-focus search input when modal opens var searchModal = document.getElementById('searchModal'); if (searchModal) { searchModal.addEventListener('shown.bs.modal', function () { var inp = searchModal.querySelector('input[name=search]'); if (inp) inp.focus(); }); }