Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2004, 06:51 AM
Authorized User
 
Join Date: Feb 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default New created popup window automatically minimized!

Hello again everybody,

This time I am having a problem with a popup window.

I have a jsp file that "is supposed" to pop up a window.... I don't really know why this window is created but is automatically minimized!!!

I used the following JavaScript:
function popupPage()
{
windowprops = "height=300,width=450,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=n o, menubar=no";
window.open("listUser.jsp", 'listUser', windowprops);
}

At one point, in my jsp file, I have the following form:
<form method="post" action="prg.jsp">
User: <input type="text" tabindex=1 name="user" maxlength=110><br>
<input onclick=formValid() type=button tabindex=2 value="OK">
<input onclick=del() type=button tabindex=3 value="DELETE">
<input onclick="popupPage()" type=button tabindex=4 value="List names" onblur=document.forms[0].nemonico.focus()>
</form>

I have realized that if I delete the following line:
   User: <input type="text" tabindex=1 name="user" maxlength=110><br>
the popup page pops up properly.

If I add the line and click the button, the page is created but minimized. To see it, I need to maximize it.... which is not what I really want.

Can you help me again?

Thanks

 
Old September 21st, 2004, 07:20 AM
Authorized User
 
Join Date: Feb 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem solved. It was due to "blur=document.forms[0].nemonico.focus()>". I removed it and it worked!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup window automatically minimized on click! elisabeth Javascript How-To 19 January 29th, 2017 02:43 AM
how to blink window in minimized state serveshsaxena Javascript 1 January 13th, 2007 12:55 PM
Restoring minimized window gbianchi Pro VB 6 2 July 11th, 2005 02:23 PM
alerting popup windown in minimized form sirsyme Javascript How-To 4 February 4th, 2005 06:04 AM
how to blink the minimized window vickyj Classic ASP Basics 0 January 25th, 2005 07:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.