Click to See Complete Forum and Search --> : PopUp Box


chialh00
10-07-2003, 10:51 AM
Hi,

Thanks for the help first.

After clicking the Distribution Forms hyperlink, a popup box show up. (see below the script). The script works fine. However, I have 24 unique forms need to be displayed, which mean I need to write 24 hyperlinks and 24 popup boxes for them. I am just wondering if you could give me another suggestions so I don't have to write 24 hyperlinks and 24 popup boxes. If not, it is ok. Please let me know if you have any questions.

Appreciate your time and help.

*code for the hyperlink*
<tr>
<td width="351"><a href="javascript:openpopup()"><font face="Arial, Helvetica, sans-serif">Distributions Forms</font></a></td></tr>]


*code for the popup*
<SCRIPT LANGUAGE="JavaScript">
function openpopup(){

text += "Please note the following information as you will need it to complete the requested forms.\n<br><br>";
text += "<a href='/oweb/PDFs/TNEL.doc' target='_whole'>Distributions Forms</a>";

winpops=window.open("","","width=400,height=338,menubar");

winpops.document.open();
winpops.document.write(text+'<form>'+'<input type=button name=print value="Print"'+ 'onclick="window.print()"> this page!</form>');
winpops.document.close();
}

</script>