location of prompt?

W

wolfing1

for some reason, when I do this...
var email= prompt("Enter the email address you want to send the test
to:","");
it's opening the prompt window in the top left of the screen. How can I
put it in the center?
 
M

Mick White

for some reason, when I do this...
var email= prompt("Enter the email address you want to send the test
to:","");
it's opening the prompt window in the top left of the screen. How can I
put it in the center?
Drag it to where you would like it to appear, your browser should
remember where you put it.
Mick
 
R

Randy Webb

(e-mail address removed) said the following on 10/3/2005 11:42 AM:
hmm... for some reason it doesn't.
Well Firefox here, maybe it doesn't?

Some browsers do, some browsers don't. You can't specify where it opens,
nor can you move it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
 
W

wolfing1

Randy said:
(e-mail address removed) said the following on 10/3/2005 11:42 AM:


Some browsers do, some browsers don't. You can't specify where it opens,
nor can you move it.
bummer
What I ended up doing is opening a new window (with the open command),
which I can size and position anywhere I want, and in a 'OK' button in
it, I call 'opener.myfunction(param)' where param is an 'input field'
in the page. Kind of convoluted I know, but it works.
 
D

Dr John Stockton

JRS: In article <[email protected]>
, dated Mon, 3 Oct 2005 07:51:33, seen in (e-mail address removed) posted :
for some reason, when I do this...
var email= prompt("Enter the email address you want to send the test
to:","");
it's opening the prompt window in the top left of the screen. How can I
put it in the center?

I can put it in the centre by putting the top left corner of the
previously-active window just above the centre.

Equating screen size and window size can be a bad idea; they are
independent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top