-
Help with <input ...>
Hi,
I am new to javascript and I'm having difficulties to make a formulary. Here is my problem.
<input type="hidden" name="abc" value="abc"> // This is ok
but with a variable
variable="abc"; // This variable is declared in an another frame
<input type="hidden" name="abc" value='parent.variable'> // Give me an error here
What I want is to populate a form by code and putting the value of somes variables into hidden textbox.
Is it clear ?
Sorry if I make some mistakes or have difficulty to write, english is not my maternal language.
-
<script type="text/javascript"><!--
document.writeln('<input type="hidden" name="abc" value="' + parent.variable + '">');
//--></script>
-