Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1540 How can I have a push button that remains pushed in if you push it and released when you push it again (in C++ it call 'radio button style of push button')?

You are here: irt.org | FAQ | JavaScript | Form | Q1540 [ previous next ]

That does not exist in JavaScript/html so you will have to make it yourself with image rollovers:

<a href="..." onClick="
if (document.images) {
   x = document.images['push'];
   if (x.src.indexOf('pushed') != -1) x.src = 'popped.gif';
   else x.src = 'pushed.gif';
}
"><img name="push" src="popped.gif"></a>

©2018 Martin Webb