i have the following simple javascript function
function invokeMeMaster() {
alert('I was invoked from page');
}
it works properly in the code but when i add it as an external js file noting happens. i try to add js file and call this function in a button click as this
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type="text/javascript"> src = <%= ResolveUrl("~/Scripts/JScript1.js")%> </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:Button ID="btnMaster" runat="server" Text="Button" OnClientClick="invokeMeMaster();"/>
</asp:Content>
what am i missing? the code does not work in this way? rhanks