What does “kill” do in JavaScript?

What does this JavaScript do exactly?

parent.kill = 1;

This is used in a project I'm working on to do some sort of session expiration but I've never seen it before. It's loaded in an iframe so I'm assuming that it is targeting the DOM document.window.


The child iframe is setting the variable kill in the parent window's global scope. What the parent does with that variable cannot be determined from just that line of javascript.

to piggy-back off @crescentfresh's answer, here is a list of reserved keywords.

I don't think that's part of the language - maybe part of a library?

Need Your Help

How to relaunch an Air-based iOS application from the very first page?

iphone ios air

My application is an Air-based iPhone app. It opens with the last page I visited before clicking the Home button, each time I relaunch the app, while I need to open with the splash screen onward. H...

Paperclip - How do they create the timestamp appended to the file name?

ruby-on-rails paperclip ruby-on-rails-3

I am using Paperclip to store images using S3. It's my understanding that Paperclip will append a string (timestamp) to the end of the image for caching purposes. Do you know what method they use to