Hi. To add to what Adam has said that if inside a function you use a variable without "var" it will also become global.
e.g.
function a()
{
count = 0;
}
In the above code the variable "count" will become global. This is a common mistake as I have faced it and a lot of bugs come bcoz of...
Hi, I am posting the sample code that I am trying to execute and the eror is coming. i have tried it on IE 6.0 version.
The code for a file caller.html is given below.
U'll have to make another empty html file "test.html" which will be called on clicking the link in caller.html.
Try clicking on...
When I try to open a link I use SHIFT + LEFT MOUSE I know that it opens the link in a new window. Originally , I am using window.open which also opens the link in a new window even if I don't press shift. However for some strange reason this not only opens the link in a new window, But also...
Hi Billy,
This is some additional information I have found out. You are right, but the question arises that why does not onblur get fired when I close the window and why does it try to get fired after the window is closed. According to u the onBlur should be fired before the onfocusout which is...
Hi, What is the diff. b/e onfocusout and onblur event?
The problem is that if i use onBlur(), it causes the whole application to crash but on replacing the OnBlur with onFocusout the application works fine. The problem comes when i try to close my window. I tried debugging and found out that the...
Thanks...actually I don't want to make it disabled because it is giving the same problem I have already posted before. The partial solution to the previous thread I posted is:
i used
checkbox.attachEvent("onClick",clickHandler);
In clickhandler I returned false.
so it works.
But I...
Hi,
I have made my check box read-only but I want it to give it a disabled effect. I don't want to use checkbox.disabled = true. Instead I want to make it read only and make it look like a disabled checkbox. One thing is that I can paste an image over it...Is there any other way out.
Regards
Hi,
Consider a situation where I have a text box and a checkbox. I change smthng in textbox and then its "onBlur" event is fired in which I make checBox.checked=true and checkBox.disabled=true.
What happens is that if I use the tab button (when the cursor is in the textbox) everything...
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.