אשכול: שאלה| JS - Value
View Single Post
ישן 11-06-09, 21:22   # 1
raNge
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Jan 2009
הודעות: 188

raNge לא מחובר  

שאלה| JS - Value

ניסיתי לעשות כאשר Value ריק הוא מצגיד את הalert שמופיע,
אבל זה לא פועל הינה התרגיל:
HTML קוד:
<html>
   <head>
     <title>ANDOR</title>
     <script language="JavaScript">
     <!--
	var text ;

	function startButton() {
	text = window.document.deticals.text.value ;
	  if (text == "") {
	  	  alert("הכנס תוכן בכדי להמשיך");
	  }
	}
     -->
     </script>
   </head>
   <body>
	<form name="deticals">
	<input type="text" />
	<input type="button" value="Confirm" onsubmit="startButton():" />
	</form>
   </body>
</html>
וזה לא פועל לי,
מה הבעיה?

תודה
  Reply With Quote