I am using a track window which opens with an onclick button, but when the button is clicked the second time, I wish to focus the window without refreshing the content. The code below works well to focus the window but it refreshes the content. Can anyone suggest how to focus the window without refreshing the content ?
<script>
function trackOpenWindow()
{
memwin=window.open("TRACK_Member.php", "myWin2", "toolbar=yes, scrollbars=yes, resizable=yes, height=590,width=1200");
if(window.focus)
memwin.focus()
if(!memwin.close)
memwin.focus()
}
</script>
<button name="subject" id="button1" type=" submit" style= "height:250px; width:480px; float:right" onClick='trackOpenWindow();'><h1>TRACK ACTIVITY</h1></button>