|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When a user clicks on a link, it opens a pop up window. So now if I minimize the pop up window and then click on another link on the main page and this link also should display its messages on a pop up window. Since there is already a pop up window open, the new link displays it's contents on that minimized window. But the user may not know this because the popup window is already minimezed. So is there any javascript I can write to show the pop up window or maximize it when the user clicks on a link when there is a pop up window already minimized?
|
|
#2
|
|||
|
|||
|
You can use the moveTo method to pull up a minimized window. Exmaple:
myWin.moveTo(200,200); will place the window 200 pixels in and down from the upper left hand corner of the screen. Have fun. [This message has been edited by JSchoof (edited September 28, 2000).] |
|
#3
|
|||
|
|||
|
I tried the moveto method but it's still not working. I have given the whole code below. Is anything wrong with it? I opened the page in IE and clicked on the first link. It opened a new window. I minimized this new window and clicked the second link. The information was just displayed in the minimized window but it was still minimized. So the user might think why its not bringing up a new window. I hope I explained clearly. The code is below.
<head> <title>Untitled</title> <script language="JavaScript"> function openWindow() { popupWin = window.open('engineering.html', 'remote', 'width=600,height=600') popupWin.moveTo(200,200) } </script> <script language="JavaScript"> function newWindow() { popupWin = window.open('hourglass1.html', 'remote', 'width=600,height=600') popupWin.moveTo(200,200) } </script> </head> <body> <a href="javascript penWindow();">Computer Engineering</a><br> <a href="javascript:newWindow();">Hourglass page</a> </body> |
|
#4
|
|||
|
|||
|
I dunno about your code, but here is the example I got to work before I answered before: <script> function InitWin() { win = window.open(); SizeWin(); } function SizeWin() { if (navigator.appName == 'Netscape') { win.innerHeight = 200; win.innerWidth = 200; } else { win.resizeTo(200,200); } } function ShowWin() { win.moveTo(200, 200); SizeWin(); } </script> <body onLoad="InitWin()"> <form><input type=button value="hey!" onClick="ShowWin()"></form> |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > focus on a new form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|