Allowing an iframe to manipulate itself on same domain using only JavaScript Example

The original post explaining in detail is here.