Flash Video | MP4 / AVC, ~675 kb/s | 1064x600 | Duration: 01:26:35 | English: AAC, 81 kb/s (2 ch) | 465 mb
Genre: Development / Programming

| عنوان | پاسخ | بازدید | توسط |
| |
0 | 3000 | admin |
| |
0 | 1856 | admin |
| |
0 | 3906 | admin |
| |
0 | 2223 | admin |
| |
0 | 1998 | admin |
<html>
<head>
<script type="text/javascript">
var txt="";
function message()
{
try
{
adddlert("Welcome guest!");
}
catch(err)
{
txt="There was an error on this page.nn";
txt+="Error description: " + err.description + "nn";
txt+="Click OK to continue.nn";
alert(txt);
}
}
</script>
</head>
<body>
<input type="button" value="View message" onclick="message()" />
</body>
String.prototype.namespace = function(separator) {var ns = this.split(separator || '.'), p = window;
for (i = 0; i < ns.length; i++) { p = p[ns[i]] = p[ns[i]] || {};}
};
<html>
<body>
<script type="text/javascript">
i=0;
while (i<=5)
{
document.write("The number is " + i);
document.write("<br />");
i++;
}
</script>
<p>Explanation:</p>
<p><b>i</b> is equal to 0.</p>
<p>While <b>i</b> is less than , or equal to, 5, the loop will continue to run.</p>
<p><b>i</b> will increase by 1 each time the loop runs.</p>
</body>
</html>
نتیجه این قطعه کد :
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
Explanation:
i is equal to 0.
While i is less than , or equal to, 5, the loop will continue to run.
i will increase by 1 each time the loop runs.
html>;
<body>
<;script type="text/javascript">
var i=0;
for (i=0;i<=5;i++)
{
document.write("The number is " + i);
document.write("<br />");
}
<;/script>
<;p>Explanation:</p>
<;p>This for loop starts with i=0.</p>
<;p>As long as <b>i</b> is less than, or equal to 5, the loop will continue to run.</p>
<;p><b>i</b> will increase by 1 each time the loop runs.</p>
<;/body>
<;/html>
تعداد صفحات : 2