Subj : Re: window.open To : netscape.public.mozilla.jseng From : maxime thonon Date : Tue Oct 19 2004 03:19 am yes you are right but it's not the problem... the problem is that when you are on the web, and that you click on a link, often, to open a new window, the webmaster code this with a javascript window.open ! but i don't want mozilla open a new window ! i just want that the new target open in the self window or in a new tab.. do you understant what i mean ? thx to helping me maxime ----- Original Message ----- From: "Martin Honnen" Newsgroups: netscape.public.mozilla.jseng,netscape.public.mozilla.dom To: Sent: Monday, October 18, 2004 12:46 PM Subject: Re: window.open > > > Maxime Thonon wrote: > > > how can i modify the command window.open() in the javascript engine of > > mozilla. i want this command open the new target in the initial window, > > not in a newone. > > I don't think that window.open is implemented in the JavaScript engine, > it is a method of the browser hosting the script engine. If you want to > load a new page in the current window you can use > window.location.href = 'whatever.html'; > or if you want to use window.open then use > window.open('whatever.html', '_self'); > > Crosspost and follow-up to netscape.public.mozilla.dom > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/ > _______________________________________________ > mozilla-jseng mailing list > mozilla-jseng@mozilla.org > http://mail.mozilla.org/listinfo/mozilla-jseng > .