Hi,
I'm trying to create a self centering / sizing window. Which in itself is not particularly difficult. Except that I would like main page to do the above, but not a pop-up).
I really would prefer not to have the Maint2.html open at all I only want a small window to appear to show the Text in Maint.html, the only problem is that I'm using a script to do a tree directory menu, and so it requires a link to be clicked on to open the Maintenance page. The link cannot be edited, but all links open in a new page by default.
Sorry I know it's a pain, but I can't edit some of the already written code, as It's the works intranet. They don't like people playing with their code!
The code I have is
Maint.html
Maint2.html
Hopefully you can see what I'm trying to do. Please post if you have any questions and I'll try to clarify.
I'm trying to create a self centering / sizing window. Which in itself is not particularly difficult. Except that I would like main page to do the above, but not a pop-up).
I really would prefer not to have the Maint2.html open at all I only want a small window to appear to show the Text in Maint.html, the only problem is that I'm using a script to do a tree directory menu, and so it requires a link to be clicked on to open the Maintenance page. The link cannot be edited, but all links open in a new page by default.
Sorry I know it's a pain, but I can't edit some of the already written code, as It's the works intranet. They don't like people playing with their code!
The code I have is
Maint.html
Code:
<TITLE>The simplest HTML example</TITLE>
<H1>Details here</H1>
<H2>More Details here</H2>
Maint2.html
Code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=150,left = 540,top = 437');");
}
// End -->
</script>
</HEAD>
<BODY>
<!-- STEP TWO: Paste this onLoad event handler into the BODY tag -->
<BODY onLoad="javascript:popUp('maint.html')">
</BODY>
</HTML>
Hopefully you can see what I'm trying to do. Please post if you have any questions and I'll try to clarify.