The. Close () of the Baidu Popup. js file always has a small bug solution in IE.

Source: Internet
Author: User

It's refreshing to use Baidu's Popup. js today ..

However, Firefox is normal, but in IE, if IFRAME is used, if a close button event is added to it,

We need to use the parent. parent form function to control the closure of this child pop object.

Pop. Close ();

This is the object method of popup. Very good. FF is normal.

However, in IE, I found that the status bar always reads the file I just read, which is unsightly and unprofessional.

I have found a lot on the internet, and I have no relevant information. All of them are descriptions of popup. JS, and they are all copies.

Analyzed for half a dayCodeIf there is no result, it cannot be done. In the end, there is no way to come up with the FF debugger. Find the ID of the span

It is: dialogcase

No way. display: none.

The solution is as follows:

Document. getelementbyid ("dialogcase"). style. Display = 'none ';

---------------------------------

I don't know whether it is too simple or not. There is no such solution on the Internet. I recorded it and studied it for more than an hour. The storm continued ..

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.