JavaScript/התנאי if: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
אין תקציר עריכה
בדיקת קלט
שורה 17:
איי קטן משתיים
</pre>
==בדיקת קלט==
===קוד===
<pre style="direction:ltr;">
<script language="javascript">
 
var num = prompt("Enter number from 1 untill 10");
if(num<7)
{
document.write("The number smaller then 7");
}
</script>
</pre>
===תוצאה (אם תקלידו מספר קטן מ-7)===
<pre style="direction:ltr;">
The number smaller then 7
</pre>
 
==בדיקת צבע רקע==
===קוד===