كود جميل
<html dir="rtl">
<head>
<SCRIPT LANGUAGE="JavaScript">
// 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>
</head>
<body>
<CENTER>
<FORM>
<input type=button value="Confirm (Alert)" onClick="askData()">
</FORM>
<BR>Or....<BR>
<A HREF="" onMouseover="askData()">Confirm & Alert</A>
</CENTER>
</body>
</html> |