G
Guest
Hello,
I am using asp.net 2.0. I have an asp.net page that uses JavaScript to open
a popup window. When I use the JavaScript with a content page that has a
MasterPage, I get a "return" error associated with the JavaScript. I would
prefer to keep the JavaScript in the ContentPage, but how would I do so?
Thanks in advance, sck10
Example of page that works
===================
<head>
<script language="JavaScript">
var t="_blank";
var s="toolbar=no,directories=no,scrollbars=yes,resizable=yes,";
s+= "left=200,top=100,width=500,height=400";
var OpenWindow = null;
var
msgSolutionGroup="rpt_message.aspx?strParm01=FindInterlockDefinition&strParm02=SolutionGroup";
</script>
</head>
<body>
<form id="form1" runat="server">
<table border="0" cellpadding="2" cellspacing="0" width="400"
bordercolor="#000000">
<tr>
<td width="200"><div align="left"><img
src="../../images/cmd_bullet1_blue.gif" width="8" height="8">
<a href="#PopUp" onclick="window.open(msgSolutionGroup,t,s);return
false">JavaScript</a></div></td>
</tr>
</table>
</form>
</body>
</html>
I am using asp.net 2.0. I have an asp.net page that uses JavaScript to open
a popup window. When I use the JavaScript with a content page that has a
MasterPage, I get a "return" error associated with the JavaScript. I would
prefer to keep the JavaScript in the ContentPage, but how would I do so?
Thanks in advance, sck10
Example of page that works
===================
<head>
<script language="JavaScript">
var t="_blank";
var s="toolbar=no,directories=no,scrollbars=yes,resizable=yes,";
s+= "left=200,top=100,width=500,height=400";
var OpenWindow = null;
var
msgSolutionGroup="rpt_message.aspx?strParm01=FindInterlockDefinition&strParm02=SolutionGroup";
</script>
</head>
<body>
<form id="form1" runat="server">
<table border="0" cellpadding="2" cellspacing="0" width="400"
bordercolor="#000000">
<tr>
<td width="200"><div align="left"><img
src="../../images/cmd_bullet1_blue.gif" width="8" height="8">
<a href="#PopUp" onclick="window.open(msgSolutionGroup,t,s);return
false">JavaScript</a></div></td>
</tr>
</table>
</form>
</body>
</html>