JSFiddle - React, Tailwind, and code Playground

JavaScript

var doc = (new DOMParser()).parseFromString("", "text/html");
alert(String(doc.URL));