Tuesday, December 17, 2013

How to Create a Bookmark to View the Source Code of a Website on an iPhone

Have you ever seen a website and went, how did they do that? Maybe it had a neat little widget or a cool design. By viewing the source code of a website, you can see exactly what the developer wrote to create the website. On a computer you can right-click on a website and select an option to view the source code. However, you can't do that from an iPhone or other mobile device. This article will show you how to create a bookmark that allows you to view the source code of the current website you're on.
STEPS
METHOD 1 OF 2: CREATING THE BOOKMARK
1
CREATE A BOOKMARK. It does not matter what website you assign to the bookmark, just go to a random site and bookmark it for now.
2
AFTER YOU\'VE CREATED YOUR BOOKMARK, SELECT THE LITTLE ICON AT THE BOTTOM OF YOUR WEB BROWSING SCREEN THAT LOOKS LIKE A BOOK. This will make you view a list of all of your bookmarks.
3
NOW TAP ON THE BUTTON THAT SAYS "", LOCATED AT THE BOTTOM OF THE BOOKMARKS SCREEN. This allows you to change the names and website addresses of your bookmarks.
4
TAP ON THE BOOKMARK YOU JUST MADE. You can now change the name and address of this bookmark.
5
CHANGE THE NAME TO SOMETHING THAT YOU LIKE AND WILL REMEMBER DISTINCTLY FROM OTHER BOOKMARKS "SOURCE CODE" OR "WEBSITE SOURCE".
6
REPLACE THE ADDRESS WITH THE FOLLOWING JAVASCRIPT CODE: javascript:(function(){var a=window.open('about:blank').document;a.write('Source of '+location.href+'');a.close();var b=a.body.appendChild(a.createElement('pre'));b.style.overflow='auto';b.style.whiteSpace='pre-wrap';b.appendChild(a.createTextNode(document.documentElement.innerHTML))})();
METHOD 2 OF 2: USING THE BOOKMARK
1
NOW GO TO ANY WEBSITE OF YOUR CHOICE.
2
SELECT THE BOOK ICON AT THE BOTTOM OF YOUR WEB BROWSING SCREEN.
3
THEN, FIND YOUR SOURCE CODE BOOKMARK AND TAP ON IT. In a new page, it will show you the source code of the website you're currently on.
Know another method for How to CREATE A BOOKMARK TO VIEW THE SOURCE CODE OF A WEBSITE ON AN IPHONE? Add it here... 1. Add Method
TIPS
Giving your source code bookmark a name like "Source Code" will make it easier to sort it out from your regular bookmarks.
WARNINGS
Do not copy all of the source code of a webpage or website and insert it into your own website without permission. Otherwise, it's considered copyright.
THINGS YOU\'LL NEED
iPhone
Internet Connection

No comments:

Post a Comment