# JavaScript BOM



# BOM

## window.history 系列語法

- `window.history.back` 回上一頁
- `window.history.foward` 到下一頁

- `window.print` 列印
- `window.location` 顯示網址
- `window.open` 另開新視窗且可賦予網址

demo:
https://codepen.io/michael-luo/pen/OJXvXvG?editors=1010

- `window.innerHeight`
- `window.innerWeight`
> 根據版面大小，自適應圖片寬高

demo:
https://codepen.io/michael-luo/pen/gOMewmb
