PDA

View Full Version : firefox


jasty8
06-20-2006, 09:53 AM
Hi

I have a problem with javascript when i am using window.close() the window is not getting closed it says when the window is not been opened by the script how can i close can any one tell me what exactly is the problem.

and the scond issue is when i am using onblur i am losing the focus of the textfield

pj_anf
06-20-2006, 10:51 AM
can you show us some of the code or point us to a link to it?

RysChwith
06-20-2006, 01:53 PM
Window.close() can only close a window that has been opened by a window.open() call. There is no way to close a window that was opened normally.

OnBlur is going to necessarily involve losing focus on the text field, because that's what OnBlur is. It's the event that fires when the object loses focus.

As PJ said, though, if you show us your code, we might be able to help you more.

Rys