Mona Sareen, please do all of us a favor and modify your display name to not use all capitals. All caps is very hard to read. Our eyes will thank you!
What you are asking for is client-side activity and must be accomplished vai client-side components. I've moved this post to the appropriate forum for that.