# I'm calling html from as3 but how do I have the window open at a certain size

**URL:** <https://forum.kirupa.com/t/im-calling-html-from-as3-but-how-do-i-have-the-window-open-at-a-certain-size/243440>\
**Category:** flash\
**Created:** [November 7, 2007, 1:15am UTC](https://forum.kirupa.com/t/im-calling-html-from-as3-but-how-do-i-have-the-window-open-at-a-certain-size/243440 "2007-11-07T01:15:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Modboy](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Modboy](https://forum.kirupa.com/u/Modboy)\
**Post date:** [November 7, 2007, 1:15am UTC](https://forum.kirupa.com/t/im-calling-html-from-as3-but-how-do-i-have-the-window-open-at-a-certain-size/243440/1 "2007-11-07T01:15:31Z")

</div>

function callLink ( pEvent:MouseEvent):void {  
var [url:String](http://www.kirupa.com/forum/String) = “aw01.html”;  
var request:URLRequest = new URLRequest(url);  
try {  
navigateToURL(request, ‘\_blank’); // second argument is target  
} catch (e:Error) {  
trace(“Error occurred!”);  
}  
}

p1btn.addEventListener(MouseEvent.CLICK, callLink);

it works fine. but how do i make aw01.html open in a window thats width=600 by height=400

pls show me how thanks
