473,322 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Adding javascript to ASP.NET


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()">
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 1086
Hi Naija,

Check this links
http://www.ondotnet.com/pub/a/dotnet...15/aspnet.html

http://www.codeguru.com/Csharp/.NET/...cle.php/c5337/

Hope this helps you.

Thanks
Raghavendra
"naija naija" <pa*********@crazyjohns.com.au> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...

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()">
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
2
by: David Tilman | last post by:
I'm new to ASP .NET and have run into a problem. I have a child page open in a web application that the user adds information to and then clicks the save button. The information is added to a...
6
by: affiliateian | last post by:
Total newbie here for this so please be patient. We manually update our XML feed when we publish an article on our website. Can we add a javascript tracking pixel (from phpadsnew) into the XML...
1
by: The Eclectic Electric | last post by:
I'd be very grateful if anyone could help me with this. From my limited knowledge of Javascript I don't think it is possible, but I'll punt anyway. I downloaded and very slightly adapted this...
4
by: Lewis Holmes | last post by:
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.