T
theintrepidfox
Dear Group
Some would think this works but somehow the Focus Button Click Event
comes back with a message saying that WindowObjectReference is either
NULL or not an object! Both buttons are contained on the same page. Any
ideas what's wrong?
Tanks for your help and efforts!
Have a nice day!
M
---------------------------------------------------------------
PopUp Button Click Event
Private Sub cmdPopUp()
Dim scriptstring AS String = "<script language=JavaScript> var
WindowObjectReference =
window.open('popup.aspx','Popup','width=320,height=150,resizable=no,scrollbars=no');</script>"
RegisterStartupScript("popup", scriptstring)
End Sub
----------------------------------------------------------------
Focus Button Click Event:
Private Sub cmdFocus()
Dim scriptstring As String = "<script language=JavaScript>
WindowObjectReference.focus();</script>"
RegisterStartupScript("focus", scriptstring)
End Sub
Some would think this works but somehow the Focus Button Click Event
comes back with a message saying that WindowObjectReference is either
NULL or not an object! Both buttons are contained on the same page. Any
ideas what's wrong?
Tanks for your help and efforts!
Have a nice day!
M
---------------------------------------------------------------
PopUp Button Click Event
Private Sub cmdPopUp()
Dim scriptstring AS String = "<script language=JavaScript> var
WindowObjectReference =
window.open('popup.aspx','Popup','width=320,height=150,resizable=no,scrollbars=no');</script>"
RegisterStartupScript("popup", scriptstring)
End Sub
----------------------------------------------------------------
Focus Button Click Event:
Private Sub cmdFocus()
Dim scriptstring As String = "<script language=JavaScript>
WindowObjectReference.focus();</script>"
RegisterStartupScript("focus", scriptstring)
End Sub