Adding javascript to ASP.NET

N

naija naija

Hi Everyone,
I'd like to add this to my asp.net page.
Can somebody guide me on how to do this?
Thanks in advance

< script language="JavaScript"> < !--
if (document.layers) {
window.captureEvents(Event.MOUSEMOVE);
}
window.onMouseMove = resetTimer;
var tID = '';
function resetTimer(e) {
alert('here');
clearTimeout(tID); // reset the timer
tID = setTimeout('executeTimer()',10000);
}
function executeTimer() {
location.href = 'a.html';
}
//--> < /script>

< body onLoad="tID = setTimeout('executeTimer()',10000)"
onMouseMove="resetTimer()">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top