JSFiddle - React, Tailwind, and code Playground

google_docs_viewer_promptUrl

by dledle2

JavaScript

javascript_:/*
http://googlesystem.blogspot.com/2015/02/google-docs-viewer-page-no-longer.html

https://docs.google.com/viewer?url=

or we can make an iframe and do embedded maybe with 
&embedded=true

*/

var strURLtoView = prompt("Please enter webpage that you would like to preview with google docs viewer", "http://google.com/document.doc");

window.location="https://docs.google.com/viewer?url=" +strURLtoView;