What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Edit a webpage

gotcha5832

iPF Noob
Joined
Dec 15, 2011
Messages
5
Reaction score
0
Hi,

I just got my webpage, And I'm looking how edit a webpage, in order to see the source?

Thanks
 

iLloyd

iPF Noob
Joined
Aug 30, 2011
Messages
164
Reaction score
9
Location
UK
Create a bookmark... Any we page will do.

Then go into bookmarks go to edit and copy this to the page link...

javascript:(function(){var a=window.open('about:blank').document;a.write('<!DOCTYPE html><html><head><title>Source of '+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');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))})();

Rename book mark something like "view source"

Job done
 

iLloyd

iPF Noob
Joined
Aug 30, 2011
Messages
164
Reaction score
9
Location
UK
iLloyd said:
Create a bookmark... Any we page will do.

Then go into bookmarks go to edit and copy this to the page link...

javascript:(function(){var a=window.open('about:blank').document;a.write('<!DOCTYPE html><html><head><title>Source of '+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');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))})();

Rename book mark something like "view source"

Job done

javascript:(function(){var a=window...ode(document.documentElement.innerHTML))})(); .... Can't get rid of the smiley sorry
 
OP
G

gotcha5832

iPF Noob
Joined
Dec 15, 2011
Messages
5
Reaction score
0
Create a bookmark... Any we page will do.

Then go into bookmarks go to edit and copy this to the page link...

javascript:(function(){var a=window.open('about:blank').document;a.write('<!DOCTYPE html><html><head><title>Source of '+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');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))})();

Rename book mark something like "view source"

Job done
Perfect
Tanks
 

Most reactions

Top