royjacob
Aug 26th, 2000, 02:14 PM
I need my program to disable and then enable JavaScript on a HTMl page using VB. Does anyone know how to?
asabi
Aug 27th, 2000, 10:41 AM
I am not sure what you mean, but you can do it with ASP.
lets say you have the following JavaScript, and you want it to work only if the person is logged in:
<%
if userID<>"" then%>
<script language="JavaScript">
function dowhatever ()
{
alert ("I am Working");
return true;
}
</script>
<%end if%>
<form name="bla" action="gee.asp" <%if userID<>"" then%> onsubmit="return dowhatever ()"<%end if%>>
.
.
.
.
.
.
.
</form>
did that help ?