# New browser window

**URL:** <https://forum.kirupa.com/t/new-browser-window/34912>\
**Category:** flash\
**Created:** [November 7, 2003, 8:14pm UTC](https://forum.kirupa.com/t/new-browser-window/34912 "2003-11-07T20:14:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakazulubro](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@shakazulubro](https://forum.kirupa.com/u/shakazulubro)\
**Post date:** [November 7, 2003, 8:14pm UTC](https://forum.kirupa.com/t/new-browser-window/34912/1 "2003-11-07T20:14:10Z")

</div>

Ok, I followed every tutorial I’ve found. I can get it to open a new browser window without toolbars and such and with specific dimensions when just doing it to a test file, but when I try and add the code to my flash file, I publish and Internet Explorer experiences an error.

Line: 1  
Char: 1  
Error: Object Expected  
Code: 0  
url: file://C:\Documents and Settings\User\Desktop\web\menu.html

I have compared the html code with that of the successful tutorial and The code is identical. Please help me understand this.  
I am using IE 6.0, windows XP home, and Flash MX 2004.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 7, 2003, 10:48pm UTC](https://forum.kirupa.com/t/new-browser-window/34912/2 "2003-11-07T22:48:30Z")

</div>

Welcome, shakazulubro. 😛

… Are you testing it within Flash? :-  
If so, the window is launched using JavaScript, and JavaScript is interpreted by the browser… which means that you’ll need to test it on your browser. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 1:10am UTC](https://forum.kirupa.com/t/new-browser-window/34912/3 "2003-11-08T01:10:19Z")

</div>

No, I publish and then load it using IE 6.0. I don’t understand what could be wrong, because line one, character 1, is an “\<”. And it is only part of the code that describes the language that the file is encoded in as is natural with any product I have seen macromedia produce that edits html files. Thank you though for the suggestion.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 1:12am UTC](https://forum.kirupa.com/t/new-browser-window/34912/4 "2003-11-08T01:12:42Z")

</div>

Why don’t you post your code then? 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 1:24am UTC](https://forum.kirupa.com/t/new-browser-window/34912/5 "2003-11-08T01:24:15Z")

</div>

Good Idea.

> \<SCRIPT LANGUAGE=“JavaScript”\>function popup() {window.open(‘[http://www.mamma.com](http://www.mamma.com)’,‘’,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=275,left=200,top=200);}\</script\>

That is on the html page. The AS that I put on the button is simply:

> on(release){geturl(“Javascript:popup()”;)}

A little sloppy I know, but it works on the test file I made.

I loaded it again in IE6.0 and a new error message came up. This error is on loading the page. The other error was on clicking the button. the new error is:  
Line: 7  
Char: 166  
Error: Unterminated String Constant  
Code: 0

Line 7 of the html file is the first piece of code I listed above.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 3:20am UTC](https://forum.kirupa.com/t/new-browser-window/34912/6 "2003-11-08T03:20:36Z")

</div>

You didn’t close the string in the features attribute.

```php
<script languaje="JavaScript">
function popup() {
	window.open('http://www.mamma.com','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=275,left=200,top=200');
}
</script>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 4:41am UTC](https://forum.kirupa.com/t/new-browser-window/34912/7 "2003-11-08T04:41:42Z")

</div>

Thank you so much. I knew it had to be something little like that.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 4:43am UTC](https://forum.kirupa.com/t/new-browser-window/34912/8 "2003-11-08T04:43:05Z")

</div>

Yep, no problem. 😉
