Hello Everyone,
I have built a site using javascript to pop open a new window for a "press section". I defined a function like so:
function newWindow() {
window.open('press_facts.html','presswindow','width=595,height=400,toolbar=yes,scrollbars=yes,resiza ble=yes');
}
Then I used the onClick handler on the press section button to call the function like so:
<a href=http://www.webdeveloper.com/forum/archive/index.php/# onClick="newWindow()">
My problem is this:
If this newly created window is not closed by the user and is instead sent to the back and is hidden, how can I refoucs it to the front if the user clicks on my "press secton" button again?
Is there a way to easy add this to my existing code or am I going to need to do this a competely different way? Thanks in advance.
Dan
I have built a site using javascript to pop open a new window for a "press section". I defined a function like so:
function newWindow() {
window.open('press_facts.html','presswindow','width=595,height=400,toolbar=yes,scrollbars=yes,resiza ble=yes');
}
Then I used the onClick handler on the press section button to call the function like so:
<a href=http://www.webdeveloper.com/forum/archive/index.php/# onClick="newWindow()">
My problem is this:
If this newly created window is not closed by the user and is instead sent to the back and is hidden, how can I refoucs it to the front if the user clicks on my "press secton" button again?
Is there a way to easy add this to my existing code or am I going to need to do this a competely different way? Thanks in advance.
Dan