I'm currently playing round with a bit of JavaScript, and I am trying to get one button to complete two actions, so it closes the internet explorer window and opens a file, here is what I have so far, but no matter what I do it won’t work:
So what am I doing wrong and how can I correct it, all it does is closes the current window.
Code:
<div id="fs">
<FORM METHOD="LINK" onClick="javascript:window.close();javascript:window.open(SPACE.xls)">
<INPUT TYPE="submit" VALUE="Freespace/Close">
</FORM>
</div>
So what am I doing wrong and how can I correct it, all it does is closes the current window.
Last edited: