I
IndyChris
I've got a button my webpage that when clicked will open another
window. Different criteria on the page will deteremine which window
gets opened when the button is clicked. I have a switch statement in my
code and then I set up javascript that I register back to the client.
This is all working fine except for one thing. The window that opens,
opens behind the parent window. I was really hoping that it would open
in front. I believe that the auto postback functionality of the button
is causing this but I'm not 100% sure.
Here's a sample of what I'm trying to do.
case "Meetme":
case "Dialout":
scriptblock += "<script language='JavaScript'>";
scriptblock += "<!-- \n";
scriptblock += "var winprint=window.open('MeetMe.aspx?sakEvent=" +
SakEvent + ',null,'height=900, width=500, scrollbars', 'return
false);\n";
scriptblock += "// -->";
scriptblock += "</script>";
Page.RegisterClientScriptBlock("clientScript", scriptblock);
break;
Can anyone see what I need to add so that my new window will open in
the front>
window. Different criteria on the page will deteremine which window
gets opened when the button is clicked. I have a switch statement in my
code and then I set up javascript that I register back to the client.
This is all working fine except for one thing. The window that opens,
opens behind the parent window. I was really hoping that it would open
in front. I believe that the auto postback functionality of the button
is causing this but I'm not 100% sure.
Here's a sample of what I'm trying to do.
case "Meetme":
case "Dialout":
scriptblock += "<script language='JavaScript'>";
scriptblock += "<!-- \n";
scriptblock += "var winprint=window.open('MeetMe.aspx?sakEvent=" +
SakEvent + ',null,'height=900, width=500, scrollbars', 'return
false);\n";
scriptblock += "// -->";
scriptblock += "</script>";
Page.RegisterClientScriptBlock("clientScript", scriptblock);
break;
Can anyone see what I need to add so that my new window will open in
the front>