Is it possible to pass a paramter that will specify the field name on a form? If this is possible what is the correct syntax for writing the function. I can't seem to get it to work.
javascript: populate('hello','TextBox1')
<SCRIPT LANGUAGE = "JavaScript">
<!--
function populate(result,FieldName) {
if (window.opener && !window.opener.closed)
window.opener.document.Form1.FieldName.value = result;
window.close();// -->
}
</SCRIPT>
Thanks!
javascript: populate('hello','TextBox1')
<SCRIPT LANGUAGE = "JavaScript">
<!--
function populate(result,FieldName) {
if (window.opener && !window.opener.closed)
window.opener.document.Form1.FieldName.value = result;
window.close();// -->
}
</SCRIPT>
Thanks!
Comment