Mercurial > repos > chrisb > gap_all_glycan_tools
diff get_data/cfg_array/info/Selected Primary Screens_files/openWindow_002.js @ 0:89592faa2875 draft
Uploaded
author | chrisb |
---|---|
date | Wed, 23 Mar 2016 14:35:56 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_data/cfg_array/info/Selected Primary Screens_files/openWindow_002.js Wed Mar 23 14:35:56 2016 -0400 @@ -0,0 +1,21 @@ +var popupWin +Stamp = new Date(); +var Hours; +var Mins; +var Seconds; +var uniqueWindow; +Hours = Stamp.getHours(); +Minutes = Stamp.getMinutes(); +Seconds = Stamp.getSeconds(); +uniqueWindow = "popupWin_" + Hours + Minutes + Seconds; +function openWindow(page) { + if (!popupWin || popupWin.closed) { + popupWin = window.open(page, uniqueWindow, "width=1200,height=600,resizable,scrollbars"); + + } + else { + popupWin = window.open(page, uniqueWindow, "width=1200,height=600,resizable,scrollbars"); + + popupWin.focus(); + } +}