Execute JavaScript for XSS without script tags
<p>I am learning about XSS (for ethical purposes), and I was wondering how to execute some JavaScript code without using <code>&lt;script&gt;</code> tags. This is within the <p> HTML tag:</p>

<pre><code>"The search term" &lt;p&gt; *JavaScript here* &lt;/p&gt; "returned no results"
</code></pre>

<p>For some reason, the script tags are not working.</p>