Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: The JavaScript Pop-up Window Primer

Feedback on: The JavaScript Pop-up Window Primer

Sent by jonathan kendal on January 12, 1999 at 13:23:32: - feedback #67
This is a very well defined article.

I wonder, however, wether or not there is a method available for passing back information to the parent window.

For instance if a user has resized the pop up window, then on closing can the parent window receive the newly set width and height values so that next time the window is loaded it will be loaded at the user defined size.

Sent by Oliver Wood on February 11, 1999 at 09:27:58: - feedback #87

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
It was a good article, however the one problem i have is that you when i try and write on the fly to a pop up window IE4 gives me the error class doesn't support automation how can you get around this.

Thanks very much



Sent by Danny Mui on March 15, 1999 at 16:31:50: - feedback #114

Worth:
Very worth reading

Comments:
Your article hit the "window" topic on the head. Thanks from a Javascript newbie.



Sent by John Bonin on March 18, 1999 at 11:37:18: - feedback #116

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Is there a way to make sure only one instance of the popup window is opened?



Sent by Armin Guenther on April 21, 1999 at 10:49:48: - feedback #170

Worth:
Very worth reading

Comments:
Hello (and thanks for this great site)!

I thing there are two errors in your article on pop-up windows: Source code listing of example 9 and 10.

EXAMPLE 9: You define

myWindow9=...

but call

msgWindow9.document.write

EXAMPLE 10: You define

myWindow10=...

but call

newWindow10.opener

Regards,

Armin




Sent by Chris on May 26, 1999 at 14:17:41: - feedback #202

Worth:
Worth reading

Comments:
I was reading your popup window article, and thought the below code might have had an error. I wasn't sure. Shouldn't the windowHandler be named "msgWindow9" instead of "myWindow9" for the rest of the code to work? (it's in the Writing Things Down section of the article).

<SCRIPT LANGUAGE="JavaScript"></SCRIPT>



Sent by Ion Amariutei on August 19, 1999 at 12:17:02: - feedback #387

Worth:
Very worth reading

Comments:
The only thins is, the last example (the practical calendar) has no source code :-(







Sent by Gary Dryden on August 21, 1999 at 10:46:19: - feedback #398

Worth:
Very worth reading

Length:
Just right

Comments:
Great Primer.
Here's a question.
If a child window is minimized,
and the main window attempts to open it again, the new content will go to the minized window and the user will not see it.
Is there anyway to have the "onload" function restore the window to its non-minimized size.






Sent by somename on December 29, 1999 at 12:34:27: - feedback #687

Worth:
Worth reading

Comments:
The form after the sentence:
Which you can try out for yourself:

errors in NS 4.07 windows 95 with:

this.form.Resizable has no properties.
JavaScript Error: http://www.irt.org/articles/js128/, line
413:



Sent by Per Hofman Hansen on March 25, 2000 at 06:32:24: - feedback #991

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Very good an informative pages about pop-up-windows.
I have used yor example no. 5, but now I want to replace the automatic generated submit-button with a small gif-file. Can you help me?
Yours

Per Hofman Hansen
http://www.silkeborg.bib.dk/elekby/personale/~hofman/default.html

and webmaster for Silkeborg Public Library
http://www.silkeborg.bib.dk/


Sent by Theresa on April 04, 2000 at 20:03:12: - feedback #1039

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
The only problem I have with the Window.open function is that when you write a script to print the child window, it prints the parent window instead.


Sent by Chris Hayward on September 09, 2000 at 04:44:03: - feedback #1734

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
I found out everyhting I was looking to find!
I'll be back.


Sent by rex on October 10, 2000 at 12:47:08: - feedback #1847

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Comment on http://tech.irt.org/articles/js128/index.htm :

<body onBlur="setTimeout=('window.focus()',1000)">
returns a JavaScript-error in IE5.
I think the code should read:
<body onBlur="setTimeout('window.focus()',1000)">

without the second =




Sent by andrew.mera on November 15, 2000 at 00:37:17: - feedback #2003

Comments:
I am just a beginner at JavaScript, couldn't find in your doc the following info:

how to generate a new 100x200 pixel window vertically centered, horizontally at the right side of the screen.

A hint would be appreciated.


Sent by Aaron M. Vest on February 16, 2001 at 00:25:45: - feedback #2380

Worth:
Very worth reading

Comments:
This is one of the best articles I've read in a long time. I am an ASP programming trying to learn more about Java for the obvious reasons. I learn a lot in a very short period of time. Can't find enough good programming content on the web sometimes. Thanks.


Sent by Girish on April 02, 2001 at 00:20:07: - feedback #2575

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
Really worthy, I could gain the sufficeint things about a pop-up window and the exact detail that i wanted from your notes.


Sent by Mountain/\Ash on June 24, 2001 at 19:52:11: - feedback #2888

Worth:
Worth reading

Comments:
I've bookmarked it I use it so often. It's a great resource. Keep up the effort.


Sent by Chris Holmes on July 06, 2001 at 10:15:57: - feedback #2940

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Just the thing I was looking for! I was searching for ages for this info. Great article. Short, and to the point.

Regards,

Chris Holmes.


Sent by bel on September 12, 2001 at 08:05:39: - feedback #3148

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
you haven't include how to make a pop up window when a window is close... what method can trigger the appearance of a pop up window on the parent window close event?


Sent by steffen on November 28, 2001 at 07:44:25: - feedback #3374

Worth:
Worth reading

Comments:
There is a java script bug in example 10. The object msWindow10 is referenced but it should be myWindow10.

Steffen


Sent by Rick Griffith on December 14, 2001 at 11:04:25: - feedback #3421

Worth:
Worth reading

Length:
Just right

Comments:
I could follow your instructions easily.I wanted to know if I have multiple pictures on a page and they are different sizes how do I set up the window to accomidate different size pictures.I see the set up in the head one size, but multiple sizes I don't quite understand how to do that. Thanks for any help you can provide. Rick


Sent by Rick Johnson on January 25, 2002 at 11:41:11: - feedback #3530

Worth:
Very worth reading

Length:
Just right

Comments:
Frankly I had forgotten that this article was where I began my foray into pop up windows.

Thanks



Sent by Dave Poulsom on June 30, 2002 at 15:28:49: - feedback #3970

Worth:
Very worth reading

Comments:
This page helped me do what I needed to do. The annotation is good and the demonstrations were very handy.

Thanks



Sent by Rick Brown on August 14, 2002 at 11:18:41: - feedback #4068

Length:
Just right

Comments:
I have an issue I am attemting to resolve, while researching I found your reference articles. In so reading I found that you have the same issue!!!

Date selector on Window primer page http://tech.irt.org/articles/js128/index.htm

If you set focus to opener window without selecting date on calendar child remains open, clicking selet date button reload child but parent retains focus.....


Sent by David Leonard on October 15, 2002 at 12:40:18: - feedback #4217

Worth:
Very worth reading

Comments:
I have created a javascript pop-up to display a "HowTo" file. I used the commmand onLoad="parent.close()" to close the parent browser window so that only the pop-up is displayed on the desktop. The problem is that a Microsoft Internet Explorer pop-up dialog opens as follows:

The web page you are viewing is trying to
close the window.

Do you want to close this window?
Yes button No button

Are there any arguments to the onLoad=parent.close() command or some way to get rid of the dialog. I just want my pop-up with no parent browser.



Sent by Weasel on October 25, 2002 at 04:19:38: - feedback #4236

Length:
Just right

Comments:
Re: Per Hofman Hansen

You should be able to use a GIF as a submit button, just do:

<INPUT TYPE=Image SRC="http..

instead of

<INPUT TYPE=Submit ETC..

and it will behave like a Submit button. :)


Sent by Weasel on October 25, 2002 at 04:20:25: - feedback #4237

Length:
Just right

Comments:
Re: Per Hofman Hansen

(Oops) You should be able to use a GIF as a submit button, just do:

<INPUT TYPE=Image SRC="http..

instead of

<INPUT TYPE=Submit ETC..

and it will behave like a Submit button. :)


Sent by Shaun on January 07, 2003 at 16:05:14: - feedback #4352

Worth:
Very worth reading

Comments:
Nice site,,easy to follow..

Is there a way of creating a mouse over pop up window that doesnt have and title,,etc(x to close window or _ to minimise window)?? just a box that only has text with a border(table)..

thanks..
sp..


Sent by pete on Thursday April 26, 2007 at 19:24:00 - feedback #4496

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
how does one remove the tab at the top and the status bar at the bottom that shows on all the "onclick" popups... this is not showing when one uses script to lauch popup on open.





©2018 Martin Webb