|
popup window
hi,
i have a form with some checkboxed (item1, item2) and textbox (name=total) , the textbox will show the total . when i press a button a popup window will appear to show the values fo the checkboxes.
i want the total also to be shown in the popup window, how can i do that??
the form is in a "file.html" , "pop.html" is the name of the popup window
i have this code inside "file.html" :
<script language="JavaScript" type="text/JavaScript">
var items = new Array()
function popS(f)
{
var sa=f.item1.selectedIndex;
var sg=f.item2.selectedIndex;
var i=0;
if(sa>0){items[i]=f.item1.options[sa].text;i++}
if(sg>0){items[i]=f.item2.options[sg].text;i++}
var popU = window.open('pop.html','newwin','height=600 width=400')
}
</script>
Regards,
reasr
|