I have 2 problems I need some help:
1. I have a login form as a new small window in JS and I want to make the parent window blur as long the login form is in front, here is the code:
- Code: Select all
<script language="JavaScript">
<!--
function new_window()
{
// Name the Window, so the remote can target it
self.name = "Parent_Window";
var new_window = "scrollbars,resizable,width=300,height=140,left=700,top=250";
OpenWindow = window.open("login.php", "login", new_window);
}
-->
</script>
2. The second problem is this: the result of the form is in the parent window and I want to automaticaly close the form(login.php) after I click the submit button and I am logged in the parent window. If I use onClick(window.close()) it close the page login.php(form) but the form is not processed.
Thanks.


