Skip to main content
Moved the meta information to the end in order to deemphasise it (most readers will have zero interest in it) - but it really ought to be in comments.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Answered before OP clarified what he wanted. The following is for an onclick similar to JavaScript's onclick, not the :active pseudo class.

This can only be achieved with either JavaScript or the Checkbox Hack.

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo.

Answered before OP clarified what he wanted.

Answered before OP clarified what he wanted. The following is for an onclick similar to JavaScript's onclick, not the :active pseudo class.

This can only be achieved with either JavaScript or the Checkbox Hack.

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo.

The following is for an onclick similar to JavaScript's onclick, not the :active pseudo class.

This can only be achieved with either JavaScript or the Checkbox Hack.

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo.

Answered before OP clarified what he wanted.

Active reading [<https://en.wikipedia.org/wiki/JavaScript>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Edit: Answered before OP clarified what he wanted. The following is for an onclick similar to javascriptsJavaScript's onclick, not the :active pseudo class.

This can only be achieved with either JavascriptJavaScript or the Checkbox Hack.

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo.

Edit: Answered before OP clarified what he wanted. The following is for an onclick similar to javascripts onclick, not the :active pseudo class.

This can only be achieved with either Javascript or the Checkbox Hack

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo

Answered before OP clarified what he wanted. The following is for an onclick similar to JavaScript's onclick, not the :active pseudo class.

This can only be achieved with either JavaScript or the Checkbox Hack.

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo.

added 150 characters in body
Source Link
Andy
  • 14.6k
  • 3
  • 55
  • 76

Edit: Answered before OP clarified what he wanted. The following is for an onclick similar to javascripts onclick, not the :active pseudo class.

This can only be achieved with either Javascript or the Checkbox Hack

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo

This can only be achieved with either Javascript or the Checkbox Hack

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo

Edit: Answered before OP clarified what he wanted. The following is for an onclick similar to javascripts onclick, not the :active pseudo class.

This can only be achieved with either Javascript or the Checkbox Hack

The checkbox hack essentially gets you to click on a label, that "checks" a checkbox, allowing you to style the label as you wish.

The demo

Source Link
Andy
  • 14.6k
  • 3
  • 55
  • 76
Loading