You can't, and the 'sometimes' happens when you try to perform a window.close() on the main window .. a security feature of IE and Netscape is to ask the user if that is what they want to do. If your script creates the window then you will be able to close it.
Yes, but see how I pass it to the function, essentially I pass document.wcForm.wcUser to the function. It doesn't matter what object I pass to it, I want to determine which form it came from.. better example, essentially what I am trying to figure out is the stuff in skeleton code:
<SCRIPT...
I am trying to determine which form in my webpage an object belongs to after passing its full location into the function.
In the following example I pass wc.wcUser to the function and alert if it belongs to wcForm (or at least thats what I want to do)
So if I call...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.