HaVoC wrote:
How would I make a javascript alert, that when you press OK it goes to a page, but there's no Cancel button...?
% HERE IS YOUR CODE: I'm not sure for your answer but i hope this may satisfy you.
<body>
<SCRIPT language="JavaScript">
<!--
function go_there()
{
var where_to= confirm("Do you really want to go to this page??");
if (where_to== true)
{
window.location="http://www.compsci.ca/";
}
else
{
window.location="http://www.compsci.ca/mx";
}
}
//-->
</SCRIPT>
<!--Put a link here -->New Page
</body>