title: How to open a Web Page with JavaScript inserted
body: <p>I want to create a new window with JavaScript Inserted, for example:
  <br>Open Google with <code>window.open</code> <strong>but</strong> I have the JavaScript <code>alert();</code> inserted into it.
  <br>When Searching, I found you can use <code>window.open</code> to open a actualy window and <a href="https://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow" rel="nofollow noreferrer">this link</a></p>
  <p>which allows you to create a new window with custom options
  (<code>window.open(&quot;https://www.w3schools.com&quot;,&quot;_blank&quot;,&quot;toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400&quot;);</code>)
  <br>So is there any way to insert JavaScript like this?</p>
  <p><strong>ALSO</strong>
  <em>if you are confused</em>
  <br>Here is a basic description.<br>I want to open <code>google.com</code> with the JavaScript tag <code>alert();</code> inserted with the <code>window.open</code> in JavaScript.
  <br>( I am also using plain JavaScript, nothing like <code>node.js</code>)</p>