Basic javascript popup notification script

Just thought I’d post up this basic popup notification script.

 

<script type=”text/javascript”>
function ConfirmGo()
{
if (confirm(“Confirm Go There?”))
location.href=’http://www.gohere.com’;
}
</script>
<input type=”button” onclick=”ConfirmGo()” value=”Go”>

 

Pretty basic but hope it helps anyone needing a confirmation for anything.

 

Share

Tags: , , , , ,

No comments yet.

Leave a Reply