[Javascript] javascript variable into form element

Alan Easton alan.easton at unn.ac.uk
Wed Aug 6 04:01:30 CDT 2003


Hello People,

I assume this is easy, but I cannot figure it out. I have the following
javascript that return a variable with a value.

<script language=javascript>
var referer = window.opener.document.location.href;
document.write(referer);
</script>

Quite simple, it gets the value and writes it to the browser.

But I would like it written to a form element.

<form>
<input type="text" name="formurl" size="30">
</form>

What is the easiest way of getting that javascript variable into that form
element....????

I have tried, but I cannot see it.

Any help would be appreciated.

Thanks,

Alan...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2226 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030806/d5344979/attachment.bin>


More information about the Javascript mailing list