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

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

You are here: irt.org | FAQ | DHTML | Q628 [ previous next ]

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>

©2018 Martin Webb