<Script type ="text/javascript">
function doneBrowse(Browsetype) {
if (Browsetype == 'YAHOO') {
window.close();
}
}
</script>
Code (VB.NET)
Public Class WebForm2
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Button1.Attributes.Add("onclick", "doneBrowse('" & Request.QueryString("Browsetype") & "');")
End Sub
End Class