the problem is that netscape 4 doesn't support dynamic document additions. I'm not quite clear whether 6 does or not...but that doesn't matter because if you want to support netscape, you need to support 4
anyhow, so you'd have to prepare as many divs as you'd want to have email addresses
here is another option...
var i=0
var earr= new Array()
function mul()
{
i++
mitem=prompt('enter an item, or leave blank to end')
if(mitem != '' && mitem != 'undefined' && mitem!= null)
{
earr[i]=mitem
setTimeout("mul()",100)
}
}
that will pop up a prompt that they can enter the email address in and keep doing it untill they enter a blank in any browser.
also, it will put all the email addresses in an array called earr
you can then access them and send them to the server (if you need help with this part, post a question in the javascript topic area)
to start the process, call the function mul()
you can do it from the onclick of a input button like this
<INPUT TYPE="BUTTON" ONCLICK="mul()">
hope that helps,
ask if you are unclear.
Bob
Main Topics
Browse All Topics





by: bebonhamPosted on 2001-06-04 at 08:22:44ID: 6152967
try asking in the javascript topic area.
also, just so you know, you will have to store all the addresses in a variable and then pass them back to your script...
you will not be able to display all the email addresses at the same time.
try posting in javascript ta for more info.
Bob