|
|
Re: window.open: msg#00044
mozilla.devel.dom
maxime thonon wrote:
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 ?
Use the right newsgroup, please stop ignoring followup-to: headers.
/be
thx to helping me
maxime
----- Original Message -----
From: "Martin Honnen" <mahotrash@xxxxxxxx>
Newsgroups: netscape.public.mozilla.jseng,netscape.public.mozilla.dom
To: <mozilla-jseng@xxxxxxxxxxx>
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@xxxxxxxxxxx
http://mail.mozilla.org/listinfo/mozilla-jseng
|
|