javascript - IE Browser Window goes to background when clicking any link on the page -
i facing weird issue net explorer 9 , 10. have web application , when click link of page, net explorer goes background (background means other open window chrome, file explorer, skype comes @ front end , ie goes background.
this weird , getting no clue how done.
the illustration of link :
<a class="menu_public" href="/portal/c/portal/login?p_l_id=11012">home</a> any clues?
updatei found cause of this, not know how tackle that
the root cause inclusion of require.js, here insert statement in html <head> tag.
<script data-main="scripts/config" type="text/javascript" src="scripts/libs/requirejs_2.1.5.js"></script> when remove statement, ie works fine. need js inclusion, can tell me how should resolve?
updatei found define() phone call creating issue, tried removing definition 1 1 , found occurs when have custom object dependencies.
so, define() block looks like
define(['jquery', 'collection/button', 'collection/tutorial', 'collection/notification', 'collection/tooltip', 'component/navigation', 'xxx/utils'], function($) { }); it works fine, when have 'jquery' in define(). other weird behavior.
yes found solution, because had next code somewhere in javascript
$(document.activeelement).blur(); just alter
$(document.activeelement).not('body').blur(); and else should fine.
have here http://tjvantoll.com/2013/08/30/bugs-with-document-activeelement-in-internet-explorer/
javascript html internet-explorer requirejs
No comments:
Post a Comment