This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am facing the problem in Firefox version 3.0.6 it was working fine till Firefox version 3.0.3 as well as other browsers such as IE5,6,7 and Flock
Web page loads successfully first time. Then, redirected to the alert message box. While returning back from the alert message box which is having only one button OK. The parent page goes blank.
Totally confused about the behaviour of the browsers.
Is there any way to sort the above problem.
Please refer the below code snippet
When look in the Error Console of the firefox it displays the onLoadWindow() not defined.
If it was not defined then how come the IE and FLOCK refer and display the page correctly?
Please help totally messed up....! Because the same is working in the lower version of Firefox!
The code looks fine to me except for the strange looking alert alert(\n\"HI\"\n)"); why are the quotes so weird and whats with the extra brackets? There is no way this could work on any browser
What works fine for me (Firefox 3.0.6) is
Of course putting inline java script code is considered pretty bad practice, but I don't think firefox should be stopping you. The problem you getting is almost associated with something else being wrong in your code. Probably you need to post you actual code, if you still face the problem.
I tried out the code too and it works fine for me (actually its elementary Java Script and should work anyways).
More ever the code working fine a couple of time and then not working is pretty strange behavior for Java Script (well unless Ajax is involved! Then it starts to get complicated )
Can you post the exact source code that you are trying out?
Also can you give a screen shot or exact posting of the error it shows in console? BTW (by the way) which console are you talking about - are you using firebug?