Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code change help

Status
Not open for further replies.

jewel464g

Technical User
Jul 18, 2001
198
US
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?'
 
document.location.href = url;


Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top