# Window.moveto doesn't work

**URL:** <https://forum.kirupa.com/t/window-moveto-doesnt-work/102388>\
**Category:** Uncategorized\
**Created:** [February 23, 2004, 10:52am UTC](https://forum.kirupa.com/t/window-moveto-doesnt-work/102388 "2004-02-23T10:52:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [February 23, 2004, 10:52am UTC](https://forum.kirupa.com/t/window-moveto-doesnt-work/102388/1 "2004-02-23T10:52:20Z")

</div>

click a button to open an external window = fine  
moving this new window to a specified position using window.moveto = doesn’t work.

My favourite quote. Bugger!!

between \<head\>\</head\> tags in the html page that is to be called when you press the button I have the following code…

```auto

< **** script language="JavaScript">
win **** dow.moveTo(0, 0);
< **** /script>

```

this doesn’t seem to be working at all. Do I need some better code or just to tweek this one. My brain tells me that this SHOULD work, where am I going wrong?! For an example please go to [http://www.brakesint.co.uk](http://www.brakesint.co.uk) and click the big green BUY ONLINE button. Cheers!

---

<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 24, 2004, 9:18am UTC](https://forum.kirupa.com/t/window-moveto-doesnt-work/102388/2 "2004-02-24T09:18:50Z")

</div>

This also seems to work, I’ve been playing. After the first coordinate remove the space after the comma, so instead of…

\<script language=“JavaScript”\>  
window.moveTo(0, 0);  
\</script\>

Try using this code withouth the space after the comma…

\<script language=“JavaScript”\>  
window.moveTo(0,0);  
\</script\>

I’ve tested it on all the computers in this building and its working fine now. A simple space caused me so much troulble!! \*\*\*\*!!

---

<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 24, 2004, 9:26am UTC](https://forum.kirupa.com/t/window-moveto-doesnt-work/102388/3 "2004-02-24T09:26:48Z")

</div>

The space doesnt make any difference for me.
