{"id":16,"date":"2011-04-25T07:38:00","date_gmt":"2011-04-25T07:38:00","guid":{"rendered":"http:\/\/mattdturner.com\/wordpress\/?p=16"},"modified":"2012-03-19T07:48:48","modified_gmt":"2012-03-19T13:48:48","slug":"finding-text-on-any-website-on-the-ipad-iphone-and-ipod","status":"publish","type":"post","link":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/","title":{"rendered":"Finding Text on Any Website on the iPad, iPhone, and iPod"},"content":{"rendered":"<p><a href=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-65\" title=\"FindInPage\" src=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg\" alt=\"Find in Page Javascript\" width=\"200\" height=\"300\" srcset=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg 200w, http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage.jpg 320w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p><strong>EDIT: <\/strong>Apparently this is now <a href=\"http:\/\/www.tipb.com\/2010\/09\/16\/ios-42-features-find-text-safari-web-page\/\">included in iOS 4.2<\/a>. \u00a0Thanks go to Mowg for bringing this to my attention.<\/p>\n<p>One rather frustrating thing that I have noticed with the iPad (and iPhone) is the inability to search for text within Safari. \u00a0Well as it turns out, a simple javascript bookmark is all you need to add this functionality to any iOS device (just like my post on <a href=\"http:\/\/mattdturner.com\/wordpress\/2011\/04\/how-to-view-html-source-code-on-ios-ipad-iphone-ipod\/\">viewing source code<\/a>).<\/p>\n<p>To enable finding text within any website, follow the below instructions:<\/p>\n<ol>\n<li>Open Safari (pretty self explanatory).<\/li>\n<li>Create a new bookmark.<\/li>\n<li>In the Title window, write whatever you want your bookmark to be named (I chose &#8220;Find on Page&#8221;)<\/li>\n<li>In the address bar add the following javascript code:\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">javascript:void(s=prompt('Find text:',''));s='('+s+')';x=new RegExp(s,'gi');\r\nrn=Math.floor(Math.random()*100);rid='z' + rn;b = document.body.innerHTML;\r\nb=b.replace(x,'&amp;lt;span id=&amp;quot; + rid + &amp;quot;&amp;gt;$1&amp;lt;\/span&amp;gt;');void(document.body.innerHTML\r\n=b);alert('Found ' + document.getElementsByName(rid).length + ' matches.');\r\nwindow.scrollTo(0,document.getElementsByName(rid)&#x5B;0].offsetTop);<\/pre>\n<\/li>\n<\/ol>\n<p><strong>NOTE<\/strong>: The entire javascript should be on one line. \u00a0As with the post on viewing source code, I did not develop this javascript bookmark. All credit goes to Matthew Panzarino\u00a0(<strong>Edit:\u00a0<\/strong>link seems to be dead now).<\/p>\n<div class=\"zemanta-pixie\" style=\"margin-top: 10px; height: 15px;\"><a class=\"zemanta-pixie-a\" title=\"Enhanced by Zemanta\" href=\"http:\/\/www.zemanta.com\/\"><img decoding=\"async\" class=\"zemanta-pixie-img\" style=\"border: none; float: right;\" src=\"http:\/\/img.zemanta.com\/zemified_e.png?x-id=4974a084-60a0-4801-83f6-893ffbf2387f\" alt=\"Enhanced by Zemanta\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>EDIT: Apparently this is now included in iOS 4.2. \u00a0Thanks go to Mowg for bringing this to my attention. One rather frustrating thing that I have noticed with the iPad (and iPhone) is the inability to search for text within Safari. \u00a0Well as it turns out, a simple javascript bookmark is all you need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,5],"tags":[17,8,40,7,52,53,54,51],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-ipad","category-iphone","tag-apple","tag-ios","tag-ipad-2","tag-iphone-2","tag-ipod-touch","tag-javascript","tag-languages","tag-safari","no-thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp\" \/>\n<meta property=\"og:description\" content=\"EDIT: Apparently this is now included in iOS 4.2. \u00a0Thanks go to Mowg for bringing this to my attention. One rather frustrating thing that I have noticed with the iPad (and iPhone) is the inability to search for text within Safari. \u00a0Well as it turns out, a simple javascript bookmark is all you need to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech N Comp\" \/>\n<meta property=\"article:published_time\" content=\"2011-04-25T07:38:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-03-19T13:48:48+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/ddfa8276a3c382cc0a217b9cba226f28\"},\"headline\":\"Finding Text on Any Website on the iPad, iPhone, and iPod\",\"datePublished\":\"2011-04-25T07:38:00+00:00\",\"dateModified\":\"2012-03-19T13:48:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/\"},\"wordCount\":242,\"commentCount\":13,\"image\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2011\\\/04\\\/FindInPage-200x300.jpg\",\"keywords\":[\"Apple\",\"ios\",\"ipad\",\"iphone\",\"IPod Touch\",\"JavaScript\",\"Languages\",\"Safari\"],\"articleSection\":[\"iPad\",\"iPhone\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/\",\"url\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/\",\"name\":\"Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2011\\\/04\\\/FindInPage-200x300.jpg\",\"datePublished\":\"2011-04-25T07:38:00+00:00\",\"dateModified\":\"2012-03-19T13:48:48+00:00\",\"author\":{\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/ddfa8276a3c382cc0a217b9cba226f28\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/2011\\\/04\\\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\\\/#primaryimage\",\"url\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2011\\\/04\\\/FindInPage.jpg\",\"contentUrl\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2011\\\/04\\\/FindInPage.jpg\",\"width\":320,\"height\":480,\"caption\":\"Find in Page Javascript\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/#website\",\"url\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/\",\"name\":\"Tech N Comp\",\"description\":\"The one stop shop for everything Technology and Computer Related\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/mattdturner.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/ddfa8276a3c382cc0a217b9cba226f28\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g\",\"caption\":\"Admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/","og_locale":"en_US","og_type":"article","og_title":"Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp","og_description":"EDIT: Apparently this is now included in iOS 4.2. \u00a0Thanks go to Mowg for bringing this to my attention. One rather frustrating thing that I have noticed with the iPad (and iPhone) is the inability to search for text within Safari. \u00a0Well as it turns out, a simple javascript bookmark is all you need to [&hellip;]","og_url":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/","og_site_name":"Tech N Comp","article_published_time":"2011-04-25T07:38:00+00:00","article_modified_time":"2012-03-19T13:48:48+00:00","og_image":[{"url":"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg","type":"","width":"","height":""}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#article","isPartOf":{"@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/"},"author":{"name":"Admin","@id":"http:\/\/mattdturner.com\/wordpress\/#\/schema\/person\/ddfa8276a3c382cc0a217b9cba226f28"},"headline":"Finding Text on Any Website on the iPad, iPhone, and iPod","datePublished":"2011-04-25T07:38:00+00:00","dateModified":"2012-03-19T13:48:48+00:00","mainEntityOfPage":{"@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/"},"wordCount":242,"commentCount":13,"image":{"@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#primaryimage"},"thumbnailUrl":"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg","keywords":["Apple","ios","ipad","iphone","IPod Touch","JavaScript","Languages","Safari"],"articleSection":["iPad","iPhone"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/","url":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/","name":"Finding Text on Any Website on the iPad, iPhone, and iPod - Tech N Comp","isPartOf":{"@id":"http:\/\/mattdturner.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#primaryimage"},"image":{"@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#primaryimage"},"thumbnailUrl":"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage-200x300.jpg","datePublished":"2011-04-25T07:38:00+00:00","dateModified":"2012-03-19T13:48:48+00:00","author":{"@id":"http:\/\/mattdturner.com\/wordpress\/#\/schema\/person\/ddfa8276a3c382cc0a217b9cba226f28"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/mattdturner.com\/wordpress\/2011\/04\/finding-text-on-any-website-on-the-ipad-iphone-and-ipod\/#primaryimage","url":"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage.jpg","contentUrl":"http:\/\/mattdturner.com\/wordpress\/wp-content\/uploads\/2011\/04\/FindInPage.jpg","width":320,"height":480,"caption":"Find in Page Javascript"},{"@type":"WebSite","@id":"http:\/\/mattdturner.com\/wordpress\/#website","url":"http:\/\/mattdturner.com\/wordpress\/","name":"Tech N Comp","description":"The one stop shop for everything Technology and Computer Related","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/mattdturner.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/mattdturner.com\/wordpress\/#\/schema\/person\/ddfa8276a3c382cc0a217b9cba226f28","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f908010f32d1c51d493f0c45d4ecaadcc12862723680f7d4ff73e7619d611855?s=96&r=g","caption":"Admin"}}]}},"_links":{"self":[{"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":8,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":350,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/posts\/16\/revisions\/350"}],"wp:attachment":[{"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mattdturner.com\/wordpress\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}