# Open new javascript window

**URL:** https://forum.kirupa.com/t/open-new-javascript-window/200310
**Category:** Uncategorized
**Created:** [September 11, 2006, 11:16am UTC](https://forum.kirupa.com/t/open-new-javascript-window/200310 "2006-09-11T11:16:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mymelody](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mymelody](https://forum.kirupa.com/u/mymelody)
#### Post date: [September 11, 2006, 11:16am UTC](https://forum.kirupa.com/t/open-new-javascript-window/200310/1 "2006-09-11T11:16:17Z")

</div>

HI,

Have a problem to get it right with my geturl. When i link to a webpage everything works fine. The window must be 800\*600, fixed size.

like this:  
on (release) {  
getURL(“javascript:NewWindow=window.open(‘[http://www.kirupa.com](http://www.kirupa.com)’,‘newWin’,‘width=800,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’);NewWindow.focus();void(0);”);  
}

But I want to link to a htmlpage in my folder.

I’ve tried this but it doesn’ work at all:

on (release) {  
getURL(“javascript:NewWindow=window.open(‘newpage.html’,‘newWin’,‘width=800,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’);NewWindow.focus();void(0);”);  
}

what do I do wrong?
