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
Answer / senthil
try this inbetween <head> tag
<base target="_self"/>
| Is This Answer Correct ? | 4 Yes | 0 No |
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 |
Answer / gayathri
<a href="javascript:window.close();"> close window </a>
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
How do you send a message to the browser in JavaScript?
How to select an element by id and swapping an image?
What are different types of scope chain available in javascript?
What is a noscript tag?
What is the Use of true or false in Ajax cal using Java Script?
Methods get and post in html forms - what's the difference?
What is a class in javascript?
Which symbol is used for comments in Javascript?
What is null variable?
What is javascript hoisting?
What is the javascript function?
What are the requirements of web application using javascript?