컴퓨터

window.open

sayyesdoit 2019. 3. 4. 16:58

기능
브라우저의 새 창을 연다.

문법
window.open(URL, name, specs, replace);

매개변수
참고: https://www.w3schools.com/jsref/met_win_open.asp

예제

myWindow = window.open('''''width=200, height=100');    // Opens a new window
myWindow.document.write("<p>This is 'myWindow'</p>");       // Some text in the new window