Embodiments of the present disclosure provide a method for operating on web page of a terminal and a terminal. The method can include recording a web page of a terminal in a first time period; obtaining an input operation from a user on the web page of the terminal; obtaining, according to the input operation, an operation instruction corresponding to the input operation in the web page recorded earlier in a second time period; and executing the operation instruction. In embodiments of the present disclosure, a demanded operation icon can be accurately triggered by a user, and thus the content corresponding to the operation icon can be outputted, therefore the user experience can be improved.