views:

65

answers:

1

hi when ever i use

window.location.href=//some url

it always open a new window, this only happens when the parent window is an dialog box. Any idea what i did wrong?

i tried using

window.open("http://asdf.com", "_self");

as suggested on this thread http://stackoverflow.com/questions/1678155/window-location-href-opens-another-window but it is still not working

thanks

+1  A: 

Parent window

window.open("http://asdf.com", "window_name","location=1,status=1,scrollbars=1,resizable=no,width=650,height=650");

code in a parent window to open new

window.open('http://www.google.com', 'window_name', '_self')
Salil
tried and it works thanks
CliffC