Multiple Sized Frames Opened from a Multiple Buttons

T

T

I am using the open command in javascript with a button
to open a specifically sized window. The page has
multiple buttons. Each window that opens needs to be a
different size...works fine...unless the previously
opened window from another button is not closed. The 2nd
button simply replaces the content that the first
button's new window displayed without resizing the
window. That is problem one. The second problem is if I
open a window with a button and leave it open and it is
hidden by more web browsing, and then I click the 2nd
button, the window is updated but still covered up - the
user might think the site unresponsive. What I would like
to do is have a new window open each time a button is
depressed which inherently will appear on top of other
open windows - this would solve both of my issues.

Here is some sample code (I put part of it in table as a
test of the conditions it is actually used in...
<I can be emailed back at TWhittall(remove this)@aol.com>

MANY THANKS!

Here is the code:


<HEAD>
<HTML>
<HEAD>
<TITLE>Open Dialogue</TITLE>
<SCRIPT LANGUAGE="JScript">
function search() {
window.open("n001s1search.htm",null,
"height=290,width=420,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
</HTML>
<BODY>
<INPUT TYPE="button"
VALUE="More" onclick="search();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY>
</HTML>
<SCRIPT LANGUAGE="JScript">
function resource() {
window.open("n001s2resource.htm",null,
"height=290,width=420,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
<BODY>
&nbsp;<table cellpadding="0" cellspacing="0" width="75">
<!-- MSCellFormattingTableID="1" -->
<tr>
<td height="75" width="75">
<!-- MSCellFormattingType="content" -->
<INPUT TYPE="button"
VALUE="More" onclick="resource();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY></td>
</tr>
</table>
</HTML>
 
T

T

I neglected to give sample code calling for a different
siaze window.
Here is the revised code:

<HEAD>
<HTML>
<HEAD>
<TITLE>Open Dialogue</TITLE>
<SCRIPT LANGUAGE="JScript">
function search() {
window.open("n001s1search.htm",null,
"height=290,width=420,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
</HTML>
<BODY>
<INPUT TYPE="button"
VALUE="More" onclick="search();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY>
</HTML>
<SCRIPT LANGUAGE="JScript">
function resource() {
window.open("n001s2resource.htm",null,
"height=420,width=290,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
<BODY>
&nbsp;<table cellpadding="0" cellspacing="0" width="75">
<!-- MSCellFormattingTableID="1" -->
<tr>
<td height="75" width="75">
<!-- MSCellFormattingType="content" -->
<INPUT TYPE="button"
VALUE="More" onclick="resource();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY></td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top