0lemonieBest Answer 11 years ago Insert this script into the <HEAD>: <script type="text/javascript"> function show_confirm() { var r=confirm("Click to continue"); if (r==true) { window.location="http://www."; } else { window.location="http://www."; } } </script>Insert this into the <BODY> <input type="button" onclick="show_confirm()" value="Popup box" />Values in bold you would change as you like/need L
0smitec08 11 years ago <script type="text/javascript"> <!-- var answer = confirm("SOME MESSAGE HERE") if (answer) window.location="URL OF SITE 1" else window.location="URL OF SITE 2" // --> </script>
Comments
Best Answer 11 years ago
Insert this script into the <HEAD>:
<script type="text/javascript">
function show_confirm()
{
var r=confirm("Click to continue");
if (r==true)
{
window.location="http://www.";
}
else
{
window.location="http://www.";
}
}
</script>
Insert this into the <BODY>
<input type="button" onclick="show_confirm()" value="Popup box" />
Values in bold you would change as you like/need
L
11 years ago
<script type="text/javascript">
<!--
var answer = confirm("SOME MESSAGE HERE")
if (answer)
window.location="URL OF SITE 1"
else
window.location="URL OF SITE 2"
// -->
</script>