Arts marketer by day, out-of-hours llama wrangler to the stars by night.

Filter content by

digital media · pictures · videos · weird · interesting · the past · the present · the future · the arts · tips

Even more

Wishlist · Validate · Licensing

Search results

Force page to break out of iframe

This code will let your page detect whether it has been loaded within an <iframe>, and - if it has - it'll bust out of the frame and reload the page:

<head>
<script>
 function break_iframe() { 
  if ( window.location != window.parent.location ) {
   top.location = self.location.href;
  }
 }
</script>
</head>
<body onload="break_iframe();">
...

I wrote this as a workaround when I found another site loading our organisation's website within an iframe, then selling ad space around our content.

Just like starting over

There's still about a month to go until this year's Culture Hack Scotland event in Glasgow, and I'm learning to code. Again.

I've been coding since I was 8 or 9 years old, but it's been a long while since I've built anything that handles graphics - not since the heady days of QBASIC, in fact. Since then, I've been through Visual Basic, then on to PHP and other web-based shenanigans. However, Processing - a language which seems to basically be a simplified front for Java - has got me back into the graphics-based fun that first got me interested in programming.

Panel: “Beyond Twitter”

I was on the panel for a Guardian Culture Professionals Network online chat about going beyond the basics in social media.

You can check it out here.