I though this would be simple enough but I can't find the answer. I need to know how I can access an iframes name from withing said iframe. I was trying something like this but it's not working.
<iframe name="thename">
<script type="text/javascript">
alert(parent.name);
</script>
</iframe>