Joke Collection Website - Blessing messages - Java web project-how to actively send information to the client browser page on the server side, and prompt the information in the pop-up box in the lower right corner of the call.

Java web project-how to actively send information to the client browser page on the server side, and prompt the information in the pop-up box in the lower right corner of the call.

Regarding the request, all this is in line with the client-"; The server, and then the server responds to customer service. The server will not actively send requests to customer service.

In order to achieve the desired effect, if it is similar to instant messaging, you can choose server push technology to let the server actively send messages to customer service. If it is used for email update, you can try round robin method, that is, the customer service side sets automatic refresh and actively visits the server regularly.

Then use dynamic effects to display tips on the page, such as. Set a div, which is hidden at first, and set the location (I forget which value, you can try it all). Then, write a method to set the div display when the message from the server is the message you want.