
Find Text in Web Page
You’re surfing a web page and you just want to skip to the content that interests you without having to read the whole page, no problem whatsoever when your’e on your home PC or Mac, but from your iPhone Safari Browser the find text in page is not included as an option.
Read on for this quick tip to get this set up with just a few taps.
Follow the steps below and you will be finding text in web pages in no time.
Step one
Add any bookmark to your iPhone, for the purpose of this tip I will use good old Google. Go to Google on your iPhone Safari browser.

Hit the Plus symbol and add the bookmark in the usual way, hit done and save.

Add Bookmark
Step two. Edit the Bookmark.
Go to your bookmarks and hit edit, now find the Google bookmark you just added.

Saved Bookmark
Change the title of the bookmark to “Find in Page” or anything else you choose. Then in the bookmark address replace http://google.co.nz with this JavaScript text:
javascript:void%28s%3Dprompt%28%27Find%20text%3A%27%2C%27%27%29%29%3Bs
%3D%27%28%27+s+%27%29%27%3Bx%3Dnew%20RegExp%28s%2C%27gi%27%29%3Brn
%3DMath.floor%28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20rn%3Bb
%20%3D%20document.body.innerHTML%3Bb%3Db.replace%28x%2C%27%3Cspan
%20name%3D%27%20+%20rid%20+%20%27%20id%3D%27%20+%20rid%20+
%20%27%20style%3D%5C%27color%3A%23000%3Bbackground-color%3Ayellow%3B
%20font-weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid
%28document.body.innerHTML%3Db%29%3Balert%28%27Found%20%27%20+
%20document.getElementsByName%28rid%29.length%20+%20%27%20matches.
%27%29%3Bwindow.scrollTo%280%2Cdocument.getElementsByName%28rid
%29%5B0%5D.offsetTop%29%3B

Edit Bookmark and Paste Javascript
Hit Done and you’re ready to use the bookmark.
Open any page in Safari:

iPhonewzealand site
Tap the bookmarks icon at the bottom of the screen and go to your new ‘find in page’ bookmark widget:

Find In Page Bookmark
Hit the bookmark and you will be greeted with the below pop-up where you can enter the search text:

Enter Text To Find
Hit done and the number of matches are displayed:

Matches Found
As with a desktop PC or Mac all the matches are highlighted

Matches Highlighted

All Matches Highlighted
One final point, this is a JavaScript bookmark widget, JavaScript must be enabled in your Safari settings for this to work.

JavaScript Enabled
That’s it iPhonewzealanders, no more scrolling through pages to find your content. Let us know how you get on with this tip in the comments.


















Nice tip for Safari will add it now.
Not that everyone loves it…Opera for iPhone….but this is built into the Opera browser under the spanner icon settings called “Find in Page”.
(FatCatMatt has made 10 comments)
Great idea thanku !
(Curly has made 10 comments)