Hi Al Ian,
Is there any other way to do that.Can u Plz tell me how can I use ur given code for'customize confirmation alert msg box' on ur site (
http://www10.brinkster.com/A1ien51/Scripts/ConfirmBuilder.htm) in my programe coz I don't want to use on_click.In ur code U pop up 'confirmation alert msg box box' on 'on_click' event.I want to add it in my function without on_click event.Below r my codes:-
function isGameOver(){
for(var prop in itemZones){
if( itemZones[prop].item.style.visibility == "visible"){
return;
}
}
gameOver = true;
//I WANT TO ADD UR CODE HERE......
//NOW HERE I AM USING :-
var agree=confirm("Game Over Your Total Score is " + score +" "+"Points"+"\n"+
"Do You Want To Play Again?"+"\n"+"(OK = Yes , Cancel = No)");
if (agree)
history.go(-1);
else
window.close();
if( itemBig ) itemBig.style.visibility = "hidden";
if( isGameOverId )clearInterval(isGameOverId);
}
Regards
Bikash