Created
June 6, 2014 20:38
-
-
Save sandeepkunkunuru/c36267dc37e14b9e9479 to your computer and use it in GitHub Desktop.
Tagging when the device does not support javascript
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script type="text/javascript"> | |
alert("javascript is supported"); | |
</script> | |
<noscript> | |
<style> | |
#img-noscript{ | |
background-image: url("http://sample.com/sample.png?u=<<random_number-referrer-current_page_url-device_info>>") | |
} | |
</style> | |
</noscript> | |
</head> | |
<body> | |
<div id="img-noscript" ></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment