Hmmm... I've alsways wanted to do something like this, but you might have to link it to some other script (like Javascript, Php, or possibly a CGI file), but there is no clear-cut way to do this. You'll have to be resourceful (and probably be able to code in another language).