Space24 / public /custom.js
QuantumLearner's picture
Create custom.js
544c74e verified
raw
history blame contribute delete
720 Bytes
/* custom.js */
Wait until the DOM is fully loaded
document.addEventListener('DOMContentLoaded', function () {
// Target all links and buttons
const links = document.querySelectorAll('a');
links.forEach(link => {
// Suppress the display of URLs in the browser status bar
link.addEventListener('mouseover', function (event) {
event.preventDefault();
window.status = ''; // Clear the status bar
});
// Optionally disable pointer events for all links (comment this out if not needed)
// link.style.pointerEvents = 'none';
// link.style.cursor = 'default';
});
//console.log('Custom JS applied: URL hover behavior modified.');
});