on my function script i wanted to direct my page into another when it passes my condition.
Code:
<script type="text/javascript">
function show_alert()
{
if (x > y)
{
alert ('value is okay');
// what code to place here when i want to direct it to the next page?
}
}
</script>
<form method="post">
<input type="submit" onclick="show_alert()" />
</form>
Comment