The application provides a terminal, a
server side and an
instant messaging method and
system. The method comprises the following steps: S1, receiving a webpage access request of a user; S2, loading a JS (
JavaScript) script and executing the JS script; S3, constructing current information of the user into an
original data packet through the JS script; S4, establishing a connection in an
ajax way through the JS script, and transmitting the
original data packet to the
server side; S5, receiving a returned data packet transmitted by the
server side through the JS script; S6, calling a
callback function through the JS script in order to process and display the returned data packet; S7, judging whether the user inputs message information and requests transmission of the message information or not through the JS script, if not, executing the steps S3 to S7 repeatedly at an interval of 1 second, and if so, executing a step S8 and then executing the steps S4 to S7; and S8, constructing the current information of the user and the message information through the JS script to obtain the
original data packet. The terminal, the
server side and the
instant messaging method and
system are higher in mobility, do not occupy excessive
server side resources, and can contribute to lowering of development cost.