Anyone,
I'm trying to call a function when a buttons clicked. Heres the code
<%
function Accesslevel() 'function to stop access to level1 users
If HasAccess = 0 Then
alert(" You do not have access to this part of the system."
return false
else
return true
end if
end function
%>
<a href="admin_edit.asp?login=<%=loginID%>" onclick="accesslevel()"><img src="images/go_button.gif" width="27" height="23" border="0"></a>
on clicking the button i get a type mismatch "accesslevel"
any ideas??
I'm trying to call a function when a buttons clicked. Heres the code
<%
function Accesslevel() 'function to stop access to level1 users
If HasAccess = 0 Then
alert(" You do not have access to this part of the system."
return false
else
return true
end if
end function
%>
<a href="admin_edit.asp?login=<%=loginID%>" onclick="accesslevel()"><img src="images/go_button.gif" width="27" height="23" border="0"></a>
on clicking the button i get a type mismatch "accesslevel"
any ideas??