Solved

Internet explorer customizing auto refresh for one website - using javascript?

Posted on 2004-08-10
8
385 Views
Last Modified: 2010-04-17
I wan to know how to refresh a webpage every x amount of second or minutes. I don't want to keep pressing the refresh botton in this one website that has a value that changes with the stock market. here i am trying to run this java script:


<html>
<head>

<title>Auto Reload</title>
<script language="JavaScript">
<!--
var time = null
function move() {
window.location = 'http://www.google.com'
}
for (i=1;i<=10 ;i++){
  if(i=10){
    timer=setTimeout('move()',3000)
   
}
}
//-->
</script>
</head>
   
</body>

This one solution we have here in mind with the guys that is not working. We don't want to use freeware out if we can avoided. Who knows what you could be installing.


0
Comment
Question by:marceloNYC
  • 3
  • 2
8 Comments
 
LVL 4

Expert Comment

by:computerg33k
ID: 11767392
There is an HTML tag than can make a web page to auto reload after a period of time (in seconds) is reached. The syntax for this tag is as follows:

    <HEAD>
      ...
      <META HTTP-EQUIV=REFRESH CONTENT="seconds">
      ...
      ...
    </HEAD>
0
 

Author Comment

by:marceloNYC
ID: 11767452
that will be if it weas my site the site I want to auto refresh every minute is : http://www.fda.gov/cder/whatsnew.htm and only that page in my system.
0
 
LVL 4

Expert Comment

by:computerg33k
ID: 11767473
alrighty---another option would be to create a web page--with the toolbar--point it to that website--then refresh it that way--would that be something you'd do--if so i'll post code
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:marceloNYC
ID: 11767491
Sorry, I am not that sure what you mean? But if you show me code I 'll get an idea.
0
 
LVL 4

Accepted Solution

by:
computerg33k earned 250 total points
ID: 11767577
window.open("http://www.fda.gov/cder/whatsnew.htm ", "win");

and then

<HEAD>
      ...
      <META HTTP-EQUIV=REFRESH CONTENT="seconds">
      ...
      ...
    </HEAD>
0
 
LVL 3

Expert Comment

by:Sasho
ID: 11767601
You could always try this:
<html>
    <head>
        <META HTTP-EQUIV=REFRESH CONTENT="2">
    </head>
    <Body>
    <iframe src="http://www.fda.gov/cder/whatsnew.htm" width="100%" height="100%" border="0">
    </body>
</html>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now