Method for controlling chatting window and electronic device implementing the same

The specification discloses an electronic device which a method of controlling a plurality of chat in particular, that discloses a technique of controlling a chat window and implement them. A method of operating an electronic device according to any one of the various embodiments of the present invention is operable to display a first chat window on the messenger screen; Action of receiving messages from outside; And may include an operation of displaying the received message if the one of the first chat window and the second independent chat window including the received message of the first chat window to the messenger screen.