Script Categories

Messages >>> Confirm Alert.

Here is a JavaScript confirm message that has variable responses. Basically, the response they get depends on what the user enters.

Confirm & Alert

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!--  Begin
function askData() {
var inputedData =  prompt ("type something!", "" );
if (confirm("Are you sure you typed "+inputedData+"?")) {
alert ("Ok, you did type "+inputedData+"!");
else {
alert ("No, you did not type "+inputedData+", did you?  OK.  Guess ya did.");
// End -->
type=button value="Confirm (Alert)" onClick="askData()">
<!-- Or another method...  --><BR>Or....<BR>
<A HREF="" onMouseover="askData()">Confirm & Alert</A>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).