Comment obtenir des données de la page HTML à l'aide de JavaScript

<p id="par">hi</p>
<!--put script in head tag-->
<script type="text/javascript">
	document.getElementById('par')//then whatever u want to do with it like window.location or something//
</script>
Daiwikrox bruh