?
Solved

Javascript working in IE9 Compatibility View but not with IE9 Normal

Posted on 2011-10-31
2
Medium Priority
?
847 Views
Last Modified: 2012-05-12
Hi Experts

I have the following code

 <asp:Button ID="btnClose" Text="Close Window" Width="120px" runat="server"  OnClientClick="javascript:window.close(); return false;"/>

Open in new window


When I run the code and use IE compatibility view it works fine. It close the window but if I disable the Compatibility View is not working any more.

Please a need some help.

Thanks
0
Comment
Question by:JoseHidalgo
2 Comments
 
LVL 10

Accepted Solution

by:
P1ST0LPETE earned 2000 total points
ID: 37060691
I just tested in the following modes:

Browser Mode: IE9  Document Mode: IE9 standards
Browser Mode: IE9  Document Mode: IE8 standards
Browser Mode: IE9  Document Mode: IE7 standards
Browser Mode: IE9  Document Mode: Quirks Mode

Browser Mode: IE8  Document Mode: IE9 standards
Browser Mode: IE8  Document Mode: IE8 standards
Browser Mode: IE8  Document Mode: IE7 standards
Browser Mode: IE8  Document Mode: Quirks Mode

Browser Mode: IE7  Document Mode: IE9 standards
Browser Mode: IE7  Document Mode: IE8 standards
Browser Mode: IE7  Document Mode: IE7 standards
Browser Mode: IE7  Document Mode: Quirks Mode

All of them closed the window.
0
 

Author Closing Comment

by:JoseHidalgo
ID: 37084643
In a different enviroment it works perfect in all of them.

Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question