Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

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

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
marceloNYC
Asked:
marceloNYC
  • 3
  • 2
1 Solution
 
computerg33kCommented:
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
 
marceloNYCAuthor Commented:
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
 
computerg33kCommented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
marceloNYCAuthor Commented:
Sorry, I am not that sure what you mean? But if you show me code I 'll get an idea.
0
 
computerg33kCommented:
window.open("http://www.fda.gov/cder/whatsnew.htm ", "win");

and then

<HEAD>
      ...
      <META HTTP-EQUIV=REFRESH CONTENT="seconds">
      ...
      ...
    </HEAD>
0
 
SashoCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now