javascript like:
<script type="text/javascript">
if(!alert("msg here ")) document.location = 'http://google.com';
</script>
this scirpt only go to google in a same tab or window, i want to pup up a window then go to google.com. Thanks.
javascript like:
<script type="text/javascript">
if(!alert("msg here ")) document.location = 'http://google.com';
</script>
this scirpt only go to google in a same tab or window, i want to pup up a window then go to google.com. Thanks.
The unfriendly way:
<script type="text/javascript">
if(!alert("msg here")) window.open("http://google.com");
</script>
The more friendly way:
<script type="text/javascript">
if(confirm("Do you wish to go to google?")) window.open("http://google.com");
</script>