Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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')?

irt.org | Knowledge Base | JavaScript | Form | Q1540 [ previous next ]

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')?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.