TC wrote:
IE only (V6).
<input type="hidden" name="NoteText" id="NoteText" value="Test">
<a onclick="NoteText=prompt('Enter Note'); alert(NoteText);"
class=MENU href="priority-mail-cgi?Context-ID=cakvfDljlSpYCVac"
target=priority_mail>Penalty Related Mail Received</a>
Make that
<a onclick="var NoteText = prompt('Enter Note', ''); if (NoteText !=
null) { document.getElementById('NoteText').value = NoteText; }"
that way your script should set the input type="hidden". On the other
hand you have a href attribute on the link so once the onclick has been
executed the browser will follow that link and does not submit the form
with the hidden input. It is not clear what you want to achieve, it
might be that an input type="submit" button instead of the link will do
what you want.
--
Martin Honnen
http://JavaScript.FAQTs.com/