JavaScript:BOM&DOM

BOM(Browser Object Model):

feature:

  1.BOM has no relevant standards.

  2.The fundamental object of BOM is window.

explain:

  We can know that BOM is closely related to the browser from it's name.

  Many things in the browser can be controlled through JavaScript , and all of them are conneted with BOM.

  eg: 

    ①Open a new window

    ②Open the new TAB (TAB)

    ③Close the page

    ④Set the homepage as the home page

    In a word, BOM is that a browser window show except web page content.

    

    All of this picture show are classified to BOM.

 

DOM(Document Object Model):

feature:

  1.The standard of DOM is W3C.

  2.The fundamental object of BOM is document (we also can say window.document).

explain:

  We can know that BOM is related to Document from it's name.In fact, the document refers to the web page.It named HTML document.

  Because web pages are sent by the server to the client browser and the HTML received is the same no matter what browser you use.

  So,DOM is independence with browser.This is the reason why standard of DOM was fixed.

  eg:

    All of those that the same things when you use different browser to open same web page.

           

    All of this picture show are classified to DOM.

 

转载于:https://www.cnblogs.com/chenzhihong294/p/9847584.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值