2
我正在使用一个跟踪窗口,该窗口用一个onclick按钮打开,但是当第二次单击该按钮时,我希望关注窗口而不刷新内容。下面的代码很好地集中了窗口,但它刷新了内容。任何人都可以建议如何关注窗口而不刷新内容?在JavaScript中没有刷新的窗口焦点
<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>
你能提供一个jsfiddle吗? – henser 2014-09-21 19:44:55
http://jsfiddle.net/2e627tco/2/ – 2014-09-21 19:52:42