[Javascript] parsing vars in windows / frames
Kim Hoogenberg
kim.hoogenberg at virgil.nl
Tue Jan 25 05:08:52 CST 2005
at popup schreen:
<form ...>
<input type="text" name="toParse" value="0">
<input type="button" onclick="parseAndClose()" value="Submit">
</form>
<script type="text/javascript" language="JavaScript">
function parseAndClose() {
opener.document.forms[0].fieldToSet.value =
document.forms[0].toParse.value;
document.forms[0].submit();
window.close();
}
</script>
Not tested, but it should be in the right direction..
Greetz,
Kim
>i have a popup window (name = popup) with a form
>where you can choose a number.
>
>after submitting the window should close
>and parse the number into a form of the
>parent window, that opened the popup.
>
>any ideas?
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list