I am wondering if you are able to over-ride a pop-up window with another pop-up window's dimensions. I am creating a website with information via a onClick event to trigger another .html file that appears as a small pop-up to keep the site relatively clutter free. What I want to do is if the user clicks on an information link and forgets to close the first window, to be able to have the second window over-ride the first windows dimentions and placement. I have some example code below. I have take away style to keep the code relatavely simple to read. Any help is greatly appreciated.
<html>
<head>
<script language="JavaScript">
var UtilWindow
function makeUtility() {
UtilWindow = window.open("samplefile.htm", "def", "height=300,width=300")
}
</script>
<script language="JavaScript">
var FrameWindow
function makeFrame() {
FlexWindow = window.open("samplefileTwo.htm", "def", "height=300,width=400")
}
</script>
</head>
<body>
<span onclick='makeSite()' litup1>link to pop-up</span>
<span onclick='makeFrame()' litup1>link to over-ride</span>
</body>
</html>
<html>
<head>
<script language="JavaScript">
var UtilWindow
function makeUtility() {
UtilWindow = window.open("samplefile.htm", "def", "height=300,width=300")
}
</script>
<script language="JavaScript">
var FrameWindow
function makeFrame() {
FlexWindow = window.open("samplefileTwo.htm", "def", "height=300,width=400")
}
</script>
</head>
<body>
<span onclick='makeSite()' litup1>link to pop-up</span>
<span onclick='makeFrame()' litup1>link to over-ride</span>
</body>
</html>