in reply to Can Perl do it?

If Perl runs in your users browser, it can do that. Note: Only Internet Explorer had a Perl plugin, and I'm not sure whether it is still supported.

I recommend learning about HTTP and how it works, and where what code runs at what time.

To do this kind of scripting of HTML pages, you will need Javascript to run on the client browser.

Replies are listed 'Best First'.
Re^2: Can Perl CGI do it?
by lightoverhead (Pilgrim) on Apr 19, 2012 at 16:29 UTC

    Guys:

    Thank you for all your prompt responses. That's the concern I have. It seems that Perl along can not do this. We have to consult javascript.

      It seems that Perl along can not do this.

      Yeah, that is how the internet works. Client side is client side, server side is server side, they talk over HTTP