Braun Brelin wrote:
> Hi all,
>> Is it somehow possible to do the following:
>> <input type="textarea" value="Javascript:set_value_function()">
>> ?
>> Obviously, the above doesn't work (or seem to, at any rate) but is there a way
> to set a textarea value or defaultValue to something other than a static string?
<body onload="set_value_function()">
The have the set_value_function() you define set the value of the
textarea, which you'll now have to name or set an id on, depending on
which set of standards you wish to follow.
If the page is generated from php or any other server-side script, the
answer is more obvious and a lot easier.
Martin.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!