I am trying to figure out why this JS alert is not working. The function of the alert is to validate if the data been selected before.
<script type="text/javascript">
alert("This location been chosen.\n Please choose another location.");
history.back();
</script>
However when I try to check the error, I'm turning on the ColdFusion debug, the js alert runs smoothly.