I have a very simple confirm link on a website using the following code:
function confirmNewSuppl ier(){
if(confirm(' Are you sure that you can\'t select a supplier from the
list? \n(Click OK to request a new supplier or Cancel to return to the
Directory)')){
window.location = 'l1stage1.php';
}
}
the link is as follows:
<a href="javascrip t:;" onClick="confir mNewSupplier()"
class="mainText Normal">Creatin g a New Supplier</a>
The alert pops up but it does not redirect
What am i doing wrong???
function confirmNewSuppl ier(){
if(confirm(' Are you sure that you can\'t select a supplier from the
list? \n(Click OK to request a new supplier or Cancel to return to the
Directory)')){
window.location = 'l1stage1.php';
}
}
the link is as follows:
<a href="javascrip t:;" onClick="confir mNewSupplier()"
class="mainText Normal">Creatin g a New Supplier</a>
The alert pops up but it does not redirect
What am i doing wrong???
Comment