A simple demo about automatically prompts. It is similar with automatically prompts using AJAX in Javaweb.