Sorry about the odd title, I’m not sure how to phrase the question. Basically, I was wondering if it is possible open a new window and fill it with HTML from the front-end rather than code an actual route, db calls, etc. (Yep ultra lazy.) Thinking along these lines…
var html = '<!DOCTYPE html><body><h1>Y HALO THAR</h1></body>'
window.open(html);
Am I just wishing upon a star here? Is this even possible?
Edit this answer no longer works because of security features implemented that block certain
data:URIs.See Open a new tab/window and write something to it? for working answer
There is the option to use a dataurl…
Data URIs are currently supported by the following web browsers: