473,395 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

location of prompt?

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?

Oct 3 '05 #1
5 4833
wo******@gmail.com wrote:
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
Oct 3 '05 #2
hmm... for some reason it doesn't.
Well Firefox here, maybe it doesn't?

Mick White wrote:
wo******@gmail.com wrote:
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


Oct 3 '05 #3
wo******@gmail.com 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?
Oct 3 '05 #4

Randy Webb wrote:
wo******@gmail.com 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.

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.

Oct 3 '05 #5
JRS: In article <11**********************@g49g2000cwa.googlegroups .com>
, dated Mon, 3 Oct 2005 07:51:33, seen in news:comp.lang.javascript,
wo******@gmail.com 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.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Oct 3 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: uNConVeNtiOnAL | last post by:
Hi - My prompt box always shows up top left - in IE can I center it? var comments = prompt("Enter Comment", ""); Regards Tom
13
by: JSE | last post by:
Hello everyone. here's what we have in an html file. <form ..... <input type=button name="comment" onclick=" prompt('enter comment',' ' )" > Is there anyway to get the value...
7
by: Petesman | last post by:
I am trying to make a prompt that will ask the user for some input... If I just use var input = prompt("dafa") everything works fine but the box is put in the top left corner of the window. I need...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
3
by: Gerry Abbott | last post by:
I deploy be-fe solutions to clients, and provide them with updates as a web link to the Fe file, wrapped in an installer. I can generally simulate their shares, if they are using a mapped drive. ...
4
by: glenn | last post by:
I keep reading all sorts of books on VS that keep telling me to click on Tools/Visual Studio Command prompt to run this program or that program. However, I do not have such a menu choice. Where is...
1
by: Daniel | last post by:
Hi all, I just curious how to prompt a location msg box to allow save the file(grab from server location such as c:\abc\d\") to the server side? Any ideas? Thank you. Best regards, GIn Lye...
2
by: bhreddy | last post by:
Hi All, Can someone help me out how can I resolve the error "0xC0000005: Access violation reading location 0x513112f4"? Steps I followed... 1. I ran the application at DOS prompt 2. After...
5
by: bobdydd | last post by:
Hi Everybody I have an Access database that passes a Parameter to a web page something like this. http://localhost/index.htm?paramName=1234-54321 I want to be able to retrieve the parameter...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.