locked
Avoid JS function navigation RRS feed

  • Question

  • I have created the link button and attributes add to it.


    <script type="text/javascript" language="javascript">
        function NewWindow()
        {      
            var a=document.getElementById("Header1_LinkButton_Help");
            if(a.disabled==false)
            {
                window.open('../help/default.aspx','','width=800,height=500,location=no,menubar=0,resizable=1,scrollbar=1');
            }
        }
    </script>


        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            LinkButton_Help.Attributes.Add("onclick", "NewWindow();")
        End Sub


    but the linkbutton navigation won't work when enable false.
    Friday, August 1, 2008 7:59 AM

Answers