JSFiddle - React, Tailwind, and code Playground

HTML

<div id="phrases">
	<textarea>First</textarea>
	<textarea>Second</textarea>
	<textarea><script type="text/javascript">alert('Third');console.clear();</script></textarea>
</div>
<div id="content"></div>

CSS

#phrases{display:none}

JavaScript

const visitNum=+(localStorage.getItem('visit-counter')||0);
localStorage.setItem('visit-counter',1+visitNum);

let phrases=document.querySelectorAll('#phrases textarea');
if(!phrases)
	throw new Error('Element with id [phrases] not found!');

const content=document.getElementById('content');
if(!content)
	throw new Error('Element with id [content] not found!');
	
const phrase=phrases[visitNum%phrases.length].value;
document.write(phrase);