Last active
August 29, 2015 14:13
-
-
Save anefzaoui/7abaa1b326698b7dc5cd to your computer and use it in GitHub Desktop.
Être lazy dans un examen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getXhr(){ | |
| var xhr; | |
| try{ | |
| xhr = new XMLHttpRequest(); | |
| } catch (e){ | |
| alert("Vous utilisez le pire navigateur, Internet Explorer, veuillez switcher vers un autre."); | |
| return false; | |
| } | |
| return xhr; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment