11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
function createBoard() {
|
|
var form = document.getElementById("postform");
|
|
var e = document.getElementById("boardname");
|
|
var board = e.value;
|
|
if ( ! board.startsWith("overchan.") ) {
|
|
board = "overchan." + board;
|
|
}
|
|
form.action = form.action + board;
|
|
form.submit();
|
|
}
|