---
title: "iframe 相关"
author: "wunke"
date: "2009-04-07T14:12:00Z"
tags: ["Firefox"]
slug: "iframe"
draft: false
lastmod: "2009-04-07T14:12:00Z"
id: 368681
url: "https://wunke.iteye.com/blog/368681"
---

attachEvent是ie6的事件绑定方法

addEventListener是firefox的事件绑定方法

其中事件名如onclick,在firefox下要用click