Stoffel
01-15-2003, 01:28 PM
Hiya,
I have an iframe, and in that iframe there is a button, that opens a popup window when I click on it. On that popup window there are several names. When I click on a name it should return to a textbox in a form in the iframe.
The scrips works perfect when I dont use the iframe.
(found the code here http://www.codingforums.com/showthread.php?s=&threadid=12523 )
The iframe's name is 'hoofd' (if u need it, the name of the file where it has to write in is ned/verkoop.html)
Here is the script from the popup
<script>
function putLabel(lbl){
if (opener && !opener.closed){
opener.document.formulier.filmnaam1.value=lbl;
window.close();
}
}
</script>
<a href="javascript:putLabel('Text')">Text</a>
Hope u can help me
I have an iframe, and in that iframe there is a button, that opens a popup window when I click on it. On that popup window there are several names. When I click on a name it should return to a textbox in a form in the iframe.
The scrips works perfect when I dont use the iframe.
(found the code here http://www.codingforums.com/showthread.php?s=&threadid=12523 )
The iframe's name is 'hoofd' (if u need it, the name of the file where it has to write in is ned/verkoop.html)
Here is the script from the popup
<script>
function putLabel(lbl){
if (opener && !opener.closed){
opener.document.formulier.filmnaam1.value=lbl;
window.close();
}
}
</script>
<a href="javascript:putLabel('Text')">Text</a>
Hope u can help me