ASP.NET Popup Windows

ASP.NET Popup Windows

Post by Mari » Tue, 18 Oct 2005 12:46:30


Need help with creating a popup windwo in ASP.NET when I load a page?

This is what I have so far

<SCRIPT language="javascript">
function OpenWindow()
{
var x =
window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0')
x.focus
}
</SCRIPT>

Then in my body tag I have "onload=OpenWindow"
<body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
topmargin="0">
 
 
 

ASP.NET Popup Windows

Post by S.M. Altaf » Thu, 20 Oct 2005 19:00:39

First, please avoid posting the same question in different places. You'll
get the same answer from different people, and often they'll end up
conflicting, or they'll confuse you. In some cases they might even open up
a wormhole in the time space continuum which might collapse upon itself.
:-(

<SCRIPT language="javascript">
function OpenWindow()
{
var x =
window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0');
}
</SCRIPT>

<body MS_POSITIONING="GridLayout" onload="OpenWindow();" leftmargin="0"
topmargin="0">


That should work.

S.M. Altaf
[MVP - VB]

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

 
 
 

ASP.NET Popup Windows

Post by Scott M » Sat, 22 Oct 2005 07:04:10

You must include the parenthesis in the function call as they are part of
the function's name.