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

Q628 How can I get an answer to a question to appear below after the question is clicked on?

irt.org | Knowledge Base | DHTML | Q628 [ previous next ]

Q628 How can I get an answer to a question to appear below after the question is clicked on?

In Netscape Navigator 4 and Internet Explorer 4 - DHTML can be used to reveal layers - take a look at Dynamic Positioning.

In anything else then you can use a form field:

<SCRIPT LANGUAGE="JavaScript"><!--
function update1() {
    document.answer1.text.value = '42';
}
//--></SCRIPT>

<A HREF="javascript:update1()">What is the answer?</A>

<FORM NAME="answer1">
<INPUT TYPE="TEXT" NAME="text">
</FORM>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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