hello

i´m trying to use the messagebox ok cancel in java to confirm or cancel when i try to eliminate some data from the database.
i don´t know how it works. could somebody help me, or give me an example...

This isn't the right forum to past this in as it is a javascript question but i assume that you are trying to use confirm message box of ok or cancel. The confirm messaage box returns a true or false response. Below is a simple illistrated true or false method. If you have more question then please ask or I suggest googling javascript conformation boxes and you will find about a zillion tutorials on how to use them.

confirmed = window.confirm("Click OK to continue. Click Cancel to stop.");

if (confirmed)
{
	window.alert("Yoy clicked OK");
} 
else 
{
  window.alert("You clicked Cancel");
}

Urban

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.