| CARVIEW |
Select Language
HTTP/2 200
content-type: text/html
last-modified: Tue, 30 Mar 2021 15:15:18 GMT
accept-ranges: bytes
content-encoding: gzip
vary: Accept-Encoding
content-length: 1692
date: Fri, 16 Jan 2026 18:14:25 GMT
server: LiteSpeed
strict-transport-security: max-age=63072000; includeSubDomains
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
cache-control: max-age=3600, must-revalidate
alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"
chessboardjs.com » Homepage
As easy as two lines.
HTML
<div id="board1" style="width: 400px"></div>
JavaScript
var board1 = Chessboard('board1', 'start')
Customize with a powerful API.
HTML
<div id="board2" style="width: 400px"></div> <button id="startBtn">Start Position</button> <button id="clearBtn">Clear Board</button>
JavaScript
var board2 = Chessboard('board2', {
draggable: true,
dropOffBoard: 'trash',
sparePieces: true
})
$('#startBtn').on('click', board2.start)
$('#clearBtn').on('click', board2.clear)