Hi, I want to add a TextBox control to the page with a Button, when click button browser go to the URL that typed in TextBox open that page and refresh that after every 4 second.. and repeat continuously ... can any one help me how I can write this?
That could be done quite easily, you can use php and html for this. Something like this would work well. <form action="" name="redirect" method="post"> <p>URL: <input type="text" name="url"/></p> <p><input type="submit" name="go" value="Go"/></p> </form> HTML: <?php if ($_POST['go']) { $url = $_POST['url']; echo "<meta http-equiv='refresh' content='4; url=$url'>"; } PHP: I havent tested it but should work
What it does is takes the posted url from the form. Then in the php script if the submit button is pressed, it sets the value of the URL field to the var $var and then prints a html refresh command with the new url and the intervals set to 4 seconds.