i have a code like this
so i want to make javascript to redirect to that str variable
mabe like this command:
please make me know if this is correct
Code:
var total=document.getElementById("pagelimit").value;
var choice=confirm("Adakah anda pasti untuk set semula password bagi "+total+" rekod\!\nAre you sure to reset password for "+total+" record\!");
if (choice)
{
str="http:\\somethingurl";
}else{
str="http:\\somethingurl";
}
mabe like this command:
Code:
document.link("str");
Comment