When I call this function the window appears as desired but the window is not focused. Isn't that possible? Still the mother window is focused.
Code:Sub JavaScriptAlertRedirect() Dim strScript As String = "" strScript = "<script>" strScript = strScript & "var winName = 'w';" strScript = strScript & "var winFeatures = 'width=520,height=640,top=0,left=0,status';" strScript = strScript & "var winURL = 'http://localhost/Prisberegning2004/udskrift.aspx';" strScript = strScript & "var w;" strScript = strScript & "w = window.open(winURL,winName,winFeatures);" strScript = strScript & "w.focus();" strScript = strScript & "</script>" 'Allows the alert box to be shown without wiping the controls off the page. Page.RegisterStartupScript("ClientScript", strScript) End Sub




Reply With Quote