Hi there,

I have the foloowing problem in vb.net
I wrote a function to open a window with a document as follows.

  Public Sub OpenWindow(ByVal url As String, ByVal name As String, 
ByVal features As String)
    'url = filename; name=windowname, features=features
    Dim s As String
    s = "<script>"
    If name = "_blank" Then
      s &= "newwindow="
      s &= String.Format("window.open('{0}','{1}','{2}');", url, 
name, features)
      s &= "if (window.focus) {newwindow.focus()};"
    Else
      s &= String.Format("window.open('{0}','{1}','{2}',true);", 
url, name, features) 
    End If
    s &= "</script>"
    Try
      Page.Response.Write(s)
    Catch ex As Exception
      Throw New Exception(ex.Message)
    End Try
  End Sub

When I use this function from one webpage to open another page, it 
work OK. The new page is getting the focus. But when I use the 
function in a page that is contained in a frame, the second page 
does not get the focus.

Any idea how coe?

Dew Baboeram






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to