postheadericon 4. Write a JavaScript that finds out multiples of 10 in 0 to 10000. On the click of button start the timer and stop the counter after 10 seconds. Display on the screen how many multiples of 10 are found out within stipulated time.

<title>EX-4: WTAD :</title>
<script type="text/javascript">
function StartTimer()
setTimeout ("doMyTask()", 10000);
function doMyTask()
var i = 1;
document.write(i + ' , ');
<form name=f1>
<input type="button" name="clickMe" value="Click Me...!" onclick="StartTimer()"/>


greatseo said...

Are you looking for the best Sweets and Bakery Display Counter in cheapest price? We are providing Display Counter for food, Sweets and Bakery.

For more information visit here : Display Counter

Blog Archive

Total Pageviews

© Powered by Blogger.