# Opening a new window in a certain spot?

**URL:** <https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235>\
**Category:** Uncategorized\
**Created:** [January 28, 2003, 7:17pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235 "2003-01-28T19:17:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmattx](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xmattx](https://forum.kirupa.com/u/xmattx)\
**Post date:** [January 28, 2003, 7:17pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/1 "2003-01-28T19:17:48Z")

</div>

is there a certain way to open a window with java/dhtml in a certain spot on the screen… well i know there is but how is it done.

also there has to be some kind of “if function” since people run different resolutions, like if 600x800 is detected open it here… ect.

thanks for any help, i know this is a broad question.

---

<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:** [January 30, 2003, 10:20pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/2 "2003-01-30T22:20:29Z")

</div>

There are scripts available for download that will detect screen resolution, open the window at a set size, and then move it (normally to screen center)…  
Try these:

> **[Web Hosting Talk - The largest, most influential web hosting community on the...](http://www.webhostingtalk.com)**
>
> Web Hosting Talk

  

> **[JavaScript](https://www.javascript.com/)**
>
> Learn JavaScript and stay connected with the latest news created and curated by the JavaScript community.

  
[http://www.dynamicdrive.com/](http://www.dynamicdrive.com/)

hope that gets you going…

Also, check [www.flash-db.com](http://www.flash-db.com) , there’s an online pop-up generator there…

---

<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:** [January 30, 2003, 10:21pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/3 "2003-01-30T22:21:34Z")

</div>

I wrote my own Javascript for a centered pop up no matter what resolution.

You could probably modify the script a bit do make it go to a certain location.

---

<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:** [January 31, 2003, 2:09am UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/4 "2003-01-31T02:09:20Z")

</div>

thanks lost in beta, that helped alot.

---

<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:** [January 31, 2003, 3:11am UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/5 "2003-01-31T03:11:47Z")

</div>

No problem 🙂

---

<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:** [February 1, 2003, 3:33am UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/6 "2003-02-01T03:33:45Z")

</div>

All of you who are still using popouts are coming close to the answer to solving complex problems below.

---

<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:** [February 20, 2003, 6:35am UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/7 "2003-02-20T06:35:09Z")

</div>

i have other problem:

i want to do smthng like  
when i open a popup the window that opens it should close itself

how to do taht???

---

<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:** [February 20, 2003, 6:38am UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/8 "2003-02-20T06:38:47Z")

</div>

If you mean where the main window closes itself, then there is a way, but its pointless because IE always asks you if you want to close the window, which is popped up in an alert.

This is extremely annoying, there used to be a way around that, but they removed that with IE6 ☹

So I don’t recommend it at all.

---

<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:** [March 3, 2003, 7:57pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/9 "2003-03-03T19:57:00Z")

</div>

MS suxx a lot… :pirate:

---

<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:** [March 3, 2003, 7:58pm UTC](https://forum.kirupa.com/t/opening-a-new-window-in-a-certain-spot/12235/10 "2003-03-03T19:58:38Z")

</div>

They called it a “Security Issue”. I don’t know how that works out, but whatever. I don’t have the need for it so I don’t mind too much, but yeah, it does suck.
