Javascript Example
Screen shot
Javascript code to redirect to other page.

<html>
<head>
<title>Javascript example</title>
<script language=\'javascript\' type=\'text/javascript\'>
function redirect()
{
window.location=\'http://www.ittrainingonline.co.in\';
}
</script>
</head>
<body>
<input name=\"btn\" type=\"button\" onclick=\"redirect();\" value=\"Redirect\" />
</body>
</html>

You can download source code here