[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/zh-TW/docs/Learn_web_development/Core/Scripting/Debugging_JavaScript [Back]  [Original]

Writing forward-compatible websites - Web | MDN

MDN Web Docs

View in English Always switch to English

Writing forward-compatible websites

In this article

JavaScript

window. onfoo

onclick, onmouseover HTML document window

html
<div ></div>

div ownerDocument var ownerDocument

DOM HTML5

window

html
<script>
  function localName() {
    alert(" localName ");
  }
</script>
<div ></div>

"use strict;" ECMAScript

JavaScript

"filter" in body.style true Microsoft Internet Explorer window.event DOM DOM onload onreadystatechange

UA

User Agent

UA

UAUser Agent

Firefox Aurora Beta Firefox Aurora Beta

UA

FirefoxChrome Safari WebKit Opera Internet Explorer

X X Y X Y

UA

Vender-prefix

-vnd make-it-pretty sometimes

html
<style>
  .pretty-element {
    -vnd-make-it-pretty: sometimes;
    make-it-pretty: sometimes;
  }
</style>

CSS API

>

> Tag Tag HTML5 HTML5

html
<form action="http://www.example.com">
  <input type="submit" value=""
</form>

input Tag >

CSS


Web Proxy Viewer  |  New URL  |  Original Page