Re: is it possilble that a <form> dont open a new window
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: is it possilble that a <form> dont open a new window

From: Yann-Erwan Perio <yep@invalid.com>
Date: Sun Jul 24 2005 - 21:01:33 CEST

Wouter wrote:

> I have make fast a login on the main page and it works fine only when i
> close the window i get a messages i i'm sure i want to close the window.

This is a security feature, you can only close a window that you have
opened, not the main window.

> So
> thats why i want to know i it polibele whit javascript to send a form whit a
> target in the same window.

If everything is on the main window, then you don't need any target
anymore, just remove the window.name stuff and the target (or define it
to "_self") and this should work.

When working with specific issues it's always better to write a
dedicated test case, since you don't have to keep in view details
irrelevant to your test - if you have a hard time having it work, then
simplify your test case until you really just have the points you want
to validate.

HTH,
Yep.
Received on Tue Oct 18 03:00:50 2005