Home > Article > Web Front-end > Solution to the incompatibility of IE8's JavaScript click event (onclick)_javascript skills
The blog park flash paging is generated using JavaScript. Today I found that clicking on the page number cannot turn the page under IE8. The page turning operation is performed in the onclick event of the current page number.
The starting code is written like this:
Later changed to jQuery’s attr method:
Although it has been added, no matter how you click, the onclick event handler does not execute. Chrome and Firefox do not have this problem.
The problem was finally solved by the following code: