When JSP uses the base tag, the site cannot be opened under IE6 and the operation has been terminated to solve the problem.
Article category: Web Front-end
Today, when you are working on a project, there is a response from the project members. A time control must be referenced in the project. However, when you open the project under IE6, a dialog box indicating that the site cannot be opened and the operation has been terminated is displayed, this makes the time control unusable. However, it is strange that another member of the project team can call the code exactly the same.
After careful comparison, we finally found that one row was missing from the previously usable page and the base tag was not used: <base href = "<% = basepath %>">
After you remove this tag from an unusable page, everything is normal.
However, this is not the final solution, because sometimes the base tag must be used for page Jump and other considerations. After querying relevant information on the Internet, find a better solution that can make the two compatible,
You just need to put the base tag under the JS introduce code, that is, first introduce the JS Code of the time control, and then write the base tag.
Now, the problem is solved.