Recently, in the project test, the iframe window is displayed in wbox. The page loading failure under ie6 leads to a blank page. However, the page source code shows that the page is only loaded and stops when it is not loaded, I searched the internet for compatibility issues related to the iframe ie6 and [reprinted] The iframe under ie6. There are many problems. -Izumi-there are as many as eight types in the blog, oh buy a license! Ie6 what do you mean to me! So I tested it one by one and finally loaded the blank space at the ie6 pop-up layer, right-click the page, and refresh the page! Therefore, there are many problems with iframe under [reprinted] ie6. -Izumi-for the first entry in the blog, the src of iframe needs to be loaded twice, so the wbox is modified, the getframe method is added, and then the showbox () page is called () then, call getframe Based on the browser version for repeated loading.
The wbox. js code is as follows:
This. getFrame = function () {return $ (this). find ('iframe [name = wBoxIframe] ');}
Call Page code:
Wbox. showBox (); var ifr = wbox. getFrame (); // get iframe if (getbrowser () {ifr. load (); // call the load event to repaint the title style document of the window. frames ['wboxiframe']. location. reload (); // reload the url of the iframe object}