0

Hi I have this codes so that the next page will open in a new tab on IE, however I wanted to set the size of the new tab page and disable some items. How do i do this?

If e.CommandName = "View" Then
        Session("VisitorReport") = hdnSelectedTab.Value
        Session("VisitID") = e.CommandArgument
        ClientScript.RegisterStartupScript(Page.GetType(), "NewTab", "window.open('ViewVisitor.aspx');", True)
    End If
SysDragon
  • 9,692
  • 15
  • 60
  • 89
Ley47
  • 123
  • 1
  • 4
  • 14

2 Answers2

1

Have a look at window.open and Open a URL in a new tab (and not a new window) using JavaScript

Note: You can't control client functionality from the browser without user intervention, like open new window in new tab.

Community
  • 1
  • 1
RedDevil79
  • 445
  • 5
  • 13
0
  ClientScript.RegisterStartupScript(Page.GetType(), "NewTab", "window.open('ViewVisitor.aspx','','toolbar=yes,location=no,width=1050,height=750');", True)
Ley47
  • 123
  • 1
  • 4
  • 14