By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,952 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,952 IT Pros & Developers. It's quick & easy.

A popup and focus problem

P: n/a
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!


PopUp Button Click Event

Private Sub cmdPopUp()

Dim scriptstring AS String = "<script language=JavaScript> var
WindowObjectReference ='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>

RegisterStartupScript("focus", scriptstring)

End Sub

Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.