Is there any way to change the text in Ok and Cancel in Javascript confirm box?
Instead of OK and Cancel i want checkout and continue shopping.
I have my js code like this
[CODE=javascript]function CheckWt()
{
var backorder = 'False'
if (backorder == 'False')
{
if (parseInt(docum ent.getElementB yId('ctl00_Main Content_Shoppin gCart1_ThemeSho ppingCart1_lblB alWeight').inne rHTML) > 0)
{
var ans = confirm('You have not reached your weight limit yet.\nClick "OK" if you would like to add more items to your cart. Click "Cancel" to proceed to checkout'); if (ans )
{
return false;
}
else
{
return true;
}
}
else
{
return true;
}
}
else
{
alert('Please Update the Quantity of the items that exceeds the available stock\nOr Click On Update To Stock Button ');
return false;
}
}[/CODE]
Instead of OK and Cancel i want checkout and continue shopping.
I have my js code like this
[CODE=javascript]function CheckWt()
{
var backorder = 'False'
if (backorder == 'False')
{
if (parseInt(docum ent.getElementB yId('ctl00_Main Content_Shoppin gCart1_ThemeSho ppingCart1_lblB alWeight').inne rHTML) > 0)
{
var ans = confirm('You have not reached your weight limit yet.\nClick "OK" if you would like to add more items to your cart. Click "Cancel" to proceed to checkout'); if (ans )
{
return false;
}
else
{
return true;
}
}
else
{
return true;
}
}
else
{
alert('Please Update the Quantity of the items that exceeds the available stock\nOr Click On Update To Stock Button ');
return false;
}
}[/CODE]
Comment