I am building a site that uses a button to call up a javascript function for a new window for a "press section". Here is the function I am using:
function newWindow() {
window.open ('press_facts.html','presswindow','width=595,height=400,toolbar=yes,scrollbars=yes,resizable=yes');
}
Then, attached to the "press Section" button I have this call for the function:
onClick="newWindow()"
My problem is this: Is there a way to bring the press section window into focus (front layer) everytime it is clicked. Even if the user has unknowingly sent it to the back and it is still open when the button on the main page is clicked. Is there some simple thing I am missing or will I need to program this differently. Thank you in advance.
Dan
function newWindow() {
window.open ('press_facts.html','presswindow','width=595,height=400,toolbar=yes,scrollbars=yes,resizable=yes');
}
Then, attached to the "press Section" button I have this call for the function:
onClick="newWindow()"
My problem is this: Is there a way to bring the press section window into focus (front layer) everytime it is clicked. Even if the user has unknowingly sent it to the back and it is still open when the button on the main page is clicked. Is there some simple thing I am missing or will I need to program this differently. Thank you in advance.
Dan