|
Re: how can i use my javascript code with my asp.net page
try onclick and not onClick...
then, there's an error in your javascript: setTimeout takes a function on the first argument, not a string... so just define a method
function _2seconds() {
document.getElementById('displayDiv ').innerHTML+='2 seconds!<br>';
}
and now, use the following line:
var t1=setTimeout(_2seconds, 2000);
I think that's much better.
|