We are facing problem with the compatibilty of IE 7 and IE
6.We are calling a showModal window that is working fine in
IE6 but with IE7 it opens a new Window and Data is not
getting poputaled.In some pages it Gives an error "The
webpage you are viewing is trying to Close the window.Do
you want to close this window".

Answers were Sorted based on User's Feedback



We are facing problem with the compatibilty of IE 7 and IE 6.We are calling a showModal window tha..

Answer / senthil

try this inbetween <head> tag
<base target="_self"/>

Is This Answer Correct ?    4 Yes 0 No

We are facing problem with the compatibilty of IE 7 and IE 6.We are calling a showModal window tha..

Answer / senthil

sorry for the previous ans ami,


insteated above of try following code it may solve your
problem


window.opener = self;

window.close();

Is This Answer Correct ?    2 Yes 0 No

We are facing problem with the compatibilty of IE 7 and IE 6.We are calling a showModal window tha..

Answer / gayathri

<a href="javascript:window.close();"> close window </a>

Is This Answer Correct ?    2 Yes 0 No

We are facing problem with the compatibilty of IE 7 and IE 6.We are calling a showModal window tha..

Answer / naveen das

check if your code contains the following script
window.close();
or
window.opener.close();

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More JavaScript Interview Questions

What are the different actions that are performed using javascript?

0 Answers  


WHAT IS DIFFERENT BETWEEN CORE JAVA AND ADVANCED JAVA?

2 Answers  


what is the purpose of using jsp?

1 Answers  


Define unescape() and escape() functions?

0 Answers  


What is the output of 10+20+”30″ in JavaScript?

0 Answers  






What is the purpose of 'this' operator in JavaScript?

0 Answers  


What is use strict in javascript?

0 Answers  


Is javascript object oriented?

0 Answers  


Is javascript pure object oriented?

0 Answers  


Is there any class in javascript?

0 Answers  


Where should I put script tags?

0 Answers  


Why do we use javascript?

0 Answers  


Categories