Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-17-2005, 08:56 AM   PM User | #1
reasr
New Coder

 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
reasr is an unknown quantity at this point
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
reasr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:28 AM.


Advertisement
Log in to turn off these ads.