A method for operating an electronic device, the method comprising: displaying content comprising a first input window in a first layer on a screen; displaying a virtual keyboard in a second layer over at least a portion of the first layer; wherein the first input window is configured to display a text and the like inputted through the virtual keyboard; determining whether the virtual keyboard is overlapped with the first input window, by: determining a display area, Akb, of the virtual keyboard; determining a display area, Aiw, of the first input window; determining an overlay area of the first input window overlapped by the virtual keyboard; when an overlap ratio of the overlay area is determined to be equal to or greater than a preset reference ratio, displaying a second input window in a third layer over the second layer, wherein the second input window is spaced apart from the virtual keyboard that covers the at least the portion of the first input window, and wherein the second window represents the first input window and is configured to display the text and the like inputted through the virtual keyboard; characterized by after displaying the second input window in the third layer over the second layer, determining if a time interval in which no key input on the virtual keyboard is detected exceeds a first preset time interval; displaying, in response to determining that the time interval exceeds the first preset time interval, the second input window in a flashing state; after displaying the second input window in the flashing state, determining if the time interval in which no key input on the virtual keyboard is detected exceeds a second preset time interval; and removing temporarily, in response to determining that the time interval exceeds the second preset time interval, the second input window from the screen. displaying content comprising a first input window in a first layer on a screen; displaying a virtual keyboard in a second layer over at least a portion of the first layer; wherein the first input window is configured to display a text and the like inputted through the virtual keyboard; determining whether the virtual keyboard is overlapped with the first input window, by: determining a display area, Akb, of the virtual keyboard; determining a display area, Aiw, of the first input window; determining an overlay area of the first input window overlapped by the virtual keyboard; when an overlap ratio of the overlay area is determined to be equal to or greater than a preset reference ratio, displaying a second input window in a third layer over the second layer, wherein the second input window is spaced apart from the virtual keyboard that covers the at least the portion of the first input window, and wherein the second window represents the first input window and is configured to display the text and the like inputted through the virtual keyboard; characterized by after displaying the second input window in the third layer over the second layer, determining if a time interval in which no key input on the virtual keyboard is detected exceeds a first preset time interval; displaying, in response to determining that the time interval exceeds the first preset time interval, the second input window in a flashing state; after displaying the second input window in the flashing state, determining if the time interval in which no key input on the virtual keyboard is detected exceeds a second preset time interval; and removing temporarily, in response to determining that the time interval exceeds the second preset time interval, the second input window from the screen. determining a display area, Akb, of the virtual keyboard; determining a display area, Aiw, of the first input window; determining an overlay area of the first input window overlapped by the virtual keyboard; when an overlap ratio of the overlay area is determined to be equal to or greater than a preset reference ratio, displaying a second input window in a third layer over the second layer, wherein the second input window is spaced apart from the virtual keyboard that covers the at least the portion of the first input window, and wherein the second window represents the first input window and is configured to display the text and the like inputted through the virtual keyboard; characterized by after displaying the second input window in the third layer over the second layer, determining if a time interval in which no key input on the virtual keyboard is detected exceeds a first preset time interval; displaying, in response to determining that the time interval exceeds the first preset time interval, the second input window in a flashing state; after displaying the second input window in the flashing state, determining if the time interval in which no key input on the virtual keyboard is detected exceeds a second preset time interval; and removing temporarily, in response to determining that the time interval exceeds the second preset time interval, the second input window from the screen.