Skip to content

Instantly share code, notes, and snippets.

@sandeepkunkunuru
Created June 6, 2014 20:38
Show Gist options
  • Save sandeepkunkunuru/c36267dc37e14b9e9479 to your computer and use it in GitHub Desktop.
Save sandeepkunkunuru/c36267dc37e14b9e9479 to your computer and use it in GitHub Desktop.
Tagging when the device does not support javascript
<!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