#Onclick
<div onClick={router.push(‘/login’)}>login</div>
June 1, 2025 at 7:28 AM
<a onclick="location.replace(…)">…</a>? 🤔
November 2, 2024 at 4:44 AM
I wish more web developers would know about <a>-tags in HTML.

I've been encountering more and more sites where basic stuff like cmd+click doesn't work because they used divs + onClick handlers instead.
March 8, 2025 at 5:18 PM
it's actually a div with an onclick
March 3, 2026 at 7:02 PM
Goodbye innerHTML, hello setHTML:

document.body.setHTML(`<h1>Hello my name is <img src="x" onclick="alert('XSS')">`);

translates to ->

<h1>Hello my name is</h1>
February 24, 2026 at 2:28 PM
<Button onClick={() => pourWhiskey()}>Cancel</Button>
July 17, 2024 at 11:22 PM
spent entirely too long tonight making sure the candles and torches turn into hearts onclick()
Bonnicula's Neocities
What if Web2.0 wasn't real
bonnicula.neocities.org
December 15, 2024 at 11:29 AM
March 17, 2026 at 11:10 AM
Just accidentally typed "onlick" instead of "onclick", and glimpsed an unsettling but likely future.
December 10, 2024 at 3:40 PM
there's some kitties in the corner of The Missing Lynx in Silvermoon that have unique OnClick sounds

www.wowhead.com/npc=252571/o...

www.wowhead.com/npc=252570/c...
www.wowhead.com
March 21, 2026 at 11:28 AM
they already couldn't understand what I do at all when it was mostly onClick=
September 2, 2026 at 5:15 PM
"JSX is just like HTML", they said 😭
July 6, 2026 at 1:46 PM
<html>
<head>
<title>Free Headpats</title>
<script>
function giveHeadpat() {
alert("thx :3333");
}
</script>
</head>
<body>
<button onclick="giveHeadpat()">Click to give headpats</button>
</body>
</html>
<hr />
<p>Hello world </p>
<hr />
October 2, 2023 at 5:08 PM
div role=“button” onClick

Enters the room 😭
March 21, 2025 at 10:07 PM
ahh yes the "button" which is 15 nested divs with a JavaScript onClick attached to a random ::before element

also great for accessibility
May 27, 2026 at 8:00 PM
May 28, 2025 at 11:43 PM
Are divs with onClick even tab-selectable?

When did we stop teaching front end devs how to write html? 😭

I’ve had this issues with juniors using div+onClick instead of buttons too
March 9, 2025 at 6:47 AM
Unwrapping one of @bram.us' favorite UI features that dropped in 2025 🎁 Invoker Commands let buttons control other elements (like opening a dialog) purely with HTML, no onclick handlers necessary.

Explore the full CSS Wrapped list → goo.gle/CSSWrapped25
December 11, 2025 at 6:17 PM
i’m old and like to take handwritten notes, but human hands are not meant to write javascript
November 7, 2024 at 9:12 PM
Okay, I still haven't got this working so maybe we can figure this out together...

I've set the Steam Deck touchscreen mode to Touch API Pass-through in Steamworks.

Now the game does register my touch like a touchscreen but it doesn't click! It highlights the buttons but doesn't run OnClick.
June 6, 2025 at 4:43 AM
TIL! Now that <a> has full browser support, time to replace all those <Link onClick> components.
July 1, 2025 at 3:38 PM
OnClick gibt das Ausrufezeichen im Kreis auch die History von Umbenennungen usw.
May 22, 2024 at 9:01 AM
Today's 🌶️ take

#JSX support in the browser would most likely be a net positive

I don't mean


I mean


HTML anchored syntax in JS

It would be property-based, not attribute-based

CSP-safe

Don't come at me, it's just an idea 😅

#javascript #webdev #dev #frontend
May 24, 2025 at 8:51 PM
onclick="this.value &= 0"
My opinion is that there should be one big button labeled "opt out" and when you click it it should opt you out. Just in general.
December 16, 2025 at 10:20 PM
white people love writing public void onClick(ClickEvent e)
December 4, 2025 at 2:58 PM