It's a button of type submit, that passes a value into a GET array. Here's where it gets a bit funny.
This is part of a system that I've inherited from another programmer, so I've basically been asked to weld this function onto the pre-existing page. He uses a form with the GET protocol, then you basically check to see if a variable in the GET array is set to determine if the button is pressed. However, I found that the code never saw that the 'Save as CSV' button's value was set. It always seemed to be blank.
Finally, I added an onclick JavaScript that sets the form's target to document.window before it submits, and that works. Whether or not that's what's somehow opening a new window, I'm not sure.