How can I change the following code so that it opens in the same page and not a new one. I'm sure it's just a change to window.open(url, 'picWindow', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=700,height=500,left = 162,top = 134').
function go(which, num, win) {
n = which.selectedIndex;
if (n != 0) {
var url = eval("urls" + num + "[n]")
if (win) {
openWindow(url);
} else {
window.open(url, 'picWindow', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=700,height=500,left = 162,top = 134')
}
}
}
When faced with a decision, always ask, 'Which would be the most fun?'
function go(which, num, win) {
n = which.selectedIndex;
if (n != 0) {
var url = eval("urls" + num + "[n]")
if (win) {
openWindow(url);
} else {
window.open(url, 'picWindow', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=700,height=500,left = 162,top = 134')
}
}
}
When faced with a decision, always ask, 'Which would be the most fun?'