
January 24th, 2002, 12:23 PM
|
|
Contributing User
|
|
Join Date: Aug 2001
Posts: 229
Time spent in forums: 1 Day 2 h 28 m 51 sec
Reputation Power: 12
|
|
|
2 javascript functions on 1 click?
I have a popup window that is a disclaimer with an AGREE and DISAGREE button. If the person selects DISAGREE, it just closes. But if they select AGREE, it opens a new window with a pdf file. What I WANT IT TO DO is to not only open up that new file but also close the popup at the same time. I already tried putting the window.close function in the same href as the link to the new file but that didn't work.... How can I do this?
Here's the code for the buttons:
<tr>
<td align="center" valign="top"><a href="pdf/select_prospectus.pdf;" target="_blank"><img src="agreebutton.gif" width="91" height="34" border="0" alt="Agree"></a>
</td>
<td a href="javascript:window.close();"><img src="disagreebutton.gif" width="91" height="34" border="0" alt="Disagree"></a>
</td>
</tr>
|