Hi,
Can someone help with this code, its not working.
On clicking the OK button I need it to go to specific url. On Cancel button and 'x', close button, I need to close this form as well as the internet browser. Here is the following I have so far:
<html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function close_window() {
window.opener = "fred";
window.close();
}
//-->
</head>
<body onLoad='document.formValidate.OK.focus()'>
<form name='formValidate'>
<table>
<tr>
<td><h3><b>Are you sure you want to continue?</b></h3></td>
</tr>
<tr>
<td>
<input type='button' value='http://www.webdeveloper.com/forum/archive/index.php/OK' onClick="http://www.microsoft.com">
<input type='button' value='http://www.webdeveloper.com/forum/archive/index.php/Cancel' onClick="close_window()">
</td>
</tr>
</table>
</form>
</body>
</html>
Thanks in advance,
Can someone help with this code, its not working.
On clicking the OK button I need it to go to specific url. On Cancel button and 'x', close button, I need to close this form as well as the internet browser. Here is the following I have so far:
<html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function close_window() {
window.opener = "fred";
window.close();
}
//-->
</head>
<body onLoad='document.formValidate.OK.focus()'>
<form name='formValidate'>
<table>
<tr>
<td><h3><b>Are you sure you want to continue?</b></h3></td>
</tr>
<tr>
<td>
<input type='button' value='http://www.webdeveloper.com/forum/archive/index.php/OK' onClick="http://www.microsoft.com">
<input type='button' value='http://www.webdeveloper.com/forum/archive/index.php/Cancel' onClick="close_window()">
</td>
</tr>
</table>
</form>
</body>
</html>
Thanks in advance,