2021–01–28

Eunchong K
Jan 30, 2021

창 제어

window.open()

새로운 탭이 열린다. window.open('demo.html');기존창에서 열린다. window.open('demo.html','_self');   //_self는 기존창세번째 인자는 새창의 모양과 관련되 속성이다. 
window.open('demo.html','_blank','width=100, height-600')//_blank새창

window.close()

let win = window.open('demo.html','_blank','width=100, height-600')win.close();                 //close();로 창을 닫을 수 있다.

scrollIntoView

--

--