View Source Bookmarklet for iPad


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. 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))})();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.