Remove focus of window during Automatic refresh

B

Bilal

Hi,
I'm a complete beginner in Javascript and php ... so forgive me for
asking an easy/simple solution to the following problem:
I'm developing an application that involves multi-screen in different
windows. One of my windows involves an automatic refresh every 99 sec.
The problem is that the window is coming into focus each time the
refresh occurs. How can I prevent this from happening? Thank you in
advance for any suggestions.
Implementation of refresh as follows:
____________________________
function refreshPage(){
query4 = "<?php echo $_GET['query4']?>";
window.location.href = "fluxOT_frame.php?page_id=0&query4=" + query4 +
"&services=<?php echo $service?>&go_ahead=1&code_er=<?php echo
$cod_er?>&code_appli=<?php echo $code_app?>&periode=<?php echo
$period?>";
}
timeout = <?php echo $period;?> * 1000; // where period = 99
window.setTimeout("refreshPage();",timeout);
____________________________
Kind regards
Bils
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top