1. A method for parsing a content of a document, adapted to a handheld electronic apparatus, the method comprising: activating a browser to download the document from a webpage for displaying the content of the document, wherein the browser supports a text parsing function; disabling the text parsing function and parsing the content of the document according to a markup language rule to generate an object parsed result; enabling the text parsing function and removing the object parsed result when a touch event is detected; parsing the content to find out text groups according to a preset pattern database and re-parsing the content of the document according to the markup language rule to generate a full parsed result when the touch event is detected and after removing the object parsed result, wherein the preset pattern database comprises a plurality of specific patterns, and a format of each of the text groups conforms to one of the specific patterns; determining whether a touch coordinates matches a corresponding position of a specific text group of the text groups; and performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group.
1. A method for parsing a content of a document, adapted to a handheld electronic apparatus, the method comprising: activating a browser to download the document from a webpage for displaying the content of the document, wherein the browser supports a text parsing function; disabling the text parsing function and parsing the content of the document according to a markup language rule to generate an object parsed result; enabling the text parsing function and removing the object parsed result when a touch event is detected; parsing the content to find out text groups according to a preset pattern database and re-parsing the content of the document according to the markup language rule to generate a full parsed result when the touch event is detected and after removing the object parsed result, wherein the preset pattern database comprises a plurality of specific patterns, and a format of each of the text groups conforms to one of the specific patterns; determining whether a touch coordinates matches a corresponding position of a specific text group of the text groups; and performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group. 10. The method as claimed in claim 1 , wherein the specific patterns comprise e-mail address pattern, telephone number pattern, webpage address pattern and geographic location pattern.