Anuruddha
10-27-2003, 10:00 PM
If anyone can help me….That would ge great
I'm opening pop up window using JavaScript,
What I need to do is: first time I open the pop up window by clicking the text link and not closed it. (It will be minimize)
Second time when I click to open other pop up window using same JavaScript, pop up window refreshing on my task bar and don’t pop it up
I’m not purposely doing that and concerning about usability matters. Sometime uses are forget to close the pop up windows and second time he is tiring to open pop up window he will be confusing why pop up window doesn’t come up.
This is the JavaScript I used
<script language = "JavaScript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable= no'
win = window.open(mypage,myname,settings)
}
</script>
<a href="copyfile.jsp" onClick="NewWindow(this.href,'name','650','500','no');return false">Copy files to</a>
I'm opening pop up window using JavaScript,
What I need to do is: first time I open the pop up window by clicking the text link and not closed it. (It will be minimize)
Second time when I click to open other pop up window using same JavaScript, pop up window refreshing on my task bar and don’t pop it up
I’m not purposely doing that and concerning about usability matters. Sometime uses are forget to close the pop up windows and second time he is tiring to open pop up window he will be confusing why pop up window doesn’t come up.
This is the JavaScript I used
<script language = "JavaScript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable= no'
win = window.open(mypage,myname,settings)
}
</script>
<a href="copyfile.jsp" onClick="NewWindow(this.href,'name','650','500','no');return false">Copy files to</a>