Focus
I would like to know how to get my window to focus after clicking the date in my popup window. I would like for it to focus on txtdisplaydate.
Dim popupScript As String = "<script language='javascript'>" & _
"window.open('calendar.aspx?formname=frmFireworksP ermitApp.txtdisplaydate', 'calendar', " & _
"'width = 300, height = 200, bottom = 100, menubar = no, resizable=yes, scroll=auto');my_window.focus()" & _
"</script>"
Private Sub btncal1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncal1.Click
Page.RegisterStartupScript("PopUPScript", popupScript)
End Sub
|