Title: Javascript works in IE only when adding alert command
Last modified: August 19, 2016

---

# Javascript works in IE only when adding alert command

 *  [thenut](https://wordpress.org/support/users/thenut/)
 * (@thenut)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/javascript-works-in-ie-only-when-adding-alert-command/)
 * Hello all.
    I am facing a very weird problem. I have added a JS file with a PNG
   function for IE, along with some plug-ins that uses javascript of their own. 
   When loading the page in FireFox, everything is fine, in IE, however, it doesn’t
   show the image, or any other items that uses javascript. But, when I add a small
   alert in the javascript function, all of a sudden, IE recognize the JS, show 
   the alert and get all the information from the JS files. Here is the website 
   I am working on: [http://nefritelor.morvimmer.com](http://nefritelor.morvimmer.com)
 * Any idea why it happens??? I am perplexed !
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [fjllsoy](https://wordpress.org/support/users/fjllsoy/)
 * (@fjllsoy)
 * [18 years ago](https://wordpress.org/support/topic/javascript-works-in-ie-only-when-adding-alert-command/#post-694758)
 * Hi!
 * I’m facing the same problem. I’m wondering if you find any solution.
    my problem
   is. Opera update the view at the same time that the javascript code is executed.
   IE and Firefox seems that they buffer the acctions and execute all of them when
   the code is done. This make that everything I wanna show comes at the same time.
   What is not what I’m looking for.
 * If I insert alert in the middle of the code, the acctions are reflected directly
   in the view.
    What is clear is that alert updates the view. but how to make this
   update with out alert???? Did you find any solution to your problem? Thanks
 *  [Craig Lambie](https://wordpress.org/support/users/cclambie/)
 * (@cclambie)
 * [18 years ago](https://wordpress.org/support/topic/javascript-works-in-ie-only-when-adding-alert-command/#post-694759)
 * Not sure if you found this, but I found a solution, and saw your problem on my
   travels…
    [http://forums.digitalpoint.com/showthread.php?t=700683](http://forums.digitalpoint.com/showthread.php?t=700683)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript works in IE only when adding alert command’ is closed to new
replies.

## Tags

 * [ie](https://wordpress.org/support/topic-tag/ie/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Craig Lambie](https://wordpress.org/support/users/cclambie/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/javascript-works-in-ie-only-when-adding-alert-command/#post-694759)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
