Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created January 12, 2011 20:01
Show Gist options
  • Save natebenes/776775 to your computer and use it in GitHub Desktop.
Save natebenes/776775 to your computer and use it in GitHub Desktop.
IE No-caching workaround - begin the ugly code...
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
/* Edit the page title here */
var pageTitle = 'TITLE';
/* Edit the website address here */
var website = 'WEBSITE ADDRESS';
</script>
<meta charset=utf-8 />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<title></title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type='text/css'>html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}</style>
</head>
<body>
<div id='bsmCal'>
</div>
</body>
<script type="text/javascript">document.title=pageTitle;document.getElementById("bsmCal").innerHTML="<iframe src='"+website+"?"+Math.floor(Math.random()*9999999999999)+"' height=1600px width=100% style='border:0;'></iframe>";</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment