I want to run a javascript that checks some criterion and then either just leaves the page be or goes to a different url..
so something like
<script>
if(criterion)
redirectTo(</script>
how do i do this?
what function would i use?
thanks
so something like
<script>
if(criterion)
redirectTo(</script>
how do i do this?
what function would i use?
thanks