A method for text entry in an electronic device is disclosed. As a user
enters text, such as a URL, into a handheld device the entered text is
matched to previously visited URLs and these matched URLs are displayed
in a list. The entered text may also be matched to any stored list of
URLs or text. Typically, the matching searches for any instances of the
entered text no matter the location of the entered text in the matched
string. If one of the listed URLs is the URL desired by the user, then
the user may select that URL and navigate a web browser to the URL
without entering any more text. One of the items in the list may be the
entered text with an automatically added prefix and suffix. These
features significantly reduce the difficulty of entering URLs, especially
on a device with limited input capabilities.