Nope. The only thing that could possibly do that (well, relatively easily) would be javascript. A perl program could print the javascript but the browser would still need to exceute it. And since this isn't a javascript site, I'll leave you to research it on your own.