I am trying to open a link in the same window that I am working on but it doesn't work I get the message in the attached photo[![enter image description here](https://i.stack.imgur.com/BZ7SS.png)](https://i.stack.imgur.com/BZ7SS.png)

```html
 <body>

     <form>
     <select name="list" id="list" accesskey="target">
     <option value='none' selected>Choose a theme</option>
     <option value="https://google.com">Google</option>
     <option value="https://www.youtube.com">Youtube</option>
     <option value="https://www.facebook.com/">Facebook</option>
     </select>
     <input type=button value="Go" onclick="goToNewPage()" />
     </form>
     <script>

     function goToNewPage(){
     window.open(list.value, '_self')

     }
     </script>

     </body>
```