Peter Stanford
Member
I have a web application written in VS2003 (VB.NET) and use SmartNavigation to stop long data entry pages from scrolling on postback, i.e. if I refresh the page based on something a user selects, the page position is maintained.
When I pop up a report or help page in a new window, the new page stays in the background and I have to either Alt + TAB to display it or go to the task bar.
Is there a simple way to force the new page to open so it stays on top? Here's my ASP.NET code:
When I pop up a report or help page in a new window, the new page stays in the background and I have to either Alt + TAB to display it or go to the task bar.
Is there a simple way to force the new page to open so it stays on top? Here's my ASP.NET code:
VB.NET:
Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnHelp.Click
Dim popupScript As String = "<script language='javascript'>" & _
"window.open('Help_New_Product_Form.htm', 'CustomPopUp', " & _
"'width=800, height=600, left=112, top=84, resizable=yes, scrollbars=yes');CustomPopUp.focus()" & _
"</script>"
Page.RegisterStartupScript("PopupScript", popupScript)
End Sub