Nope, that crosses from server side control into client side, which is why Javascript works better for that, your best bet is to print out the javascript from your perl prog, and better yet, use this javascript.