troubleshooting Question

Execute javascript at load with asp.net page

Avatar of OB1Canobie
OB1CanobieFlag for United States of America asked on
Visual Basic ClassicASP.NETJavaScript
5 Comments1 Solution248 ViewsLast Modified:
I have  an asp.net page programmed in vb.  I'm trying to call the javascript located in the head of the asp.net page "goNewWin()".  I'm having trouble with the syntax for the codebehind.  I've attached the javascript at the top of the aspx page and the codebehind code.  Thanks.
--aspx page code--
<head runat="server">
    <title>Home</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function goNewWin() {
    TheNewWin =window.open("music.html",'TheNewpop','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); 
    TheNewWin.blur();
    }
</script> 

</head>

--vb code behind--
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        If Page.IsPostBack = False Then
            If Session("Logged_In") Is Nothing Then



            End If
        End If

    End Sub
ASKER CERTIFIED SOLUTION
TomKnox

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros