親フレームが存在するか Tweet Share on Tumblr Pocket var isParentFrame = (parent && !parent.document || parent.document !== document);var isParentFrame = (parent && !parent.document || parent.document !== document);