JSFiddle - React, Tailwind, and code Playground

JavaScript

alert(document.referrer.split('/')[2]);