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.


Or....
Confirm & Alert

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

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ 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 -->
</script>
<center>
<FORM>
<input
type=button value="Confirm (Alert)" onClick="askData()">
</FORM>
<!-- Or another method...  --><BR>Or....<BR>
<A HREF="" onMouseover="askData()">Confirm & Alert</A>
</center>

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!).

NCEdCloud - My.NcedCloud.org IAM Service - NCEDCloud Login


©