예를 들어, 나는 이런 식으로 뭔가를 좀하고 싶습니다 : document.write를document.write()에 큰 코드 조각을 얻는 방법이 있습니까?
<form>
<table>
<tr>
<td align="right">Subtotal:</td>
<td align="left"><form name = "e" id ="e"><input type="text" id="subtotal" /></td>
</tr>
<tr>
<td align="right">Sales Tax:</td>
<td align="left"><form name = "f" id = "f"><input type="text" id="tax" /></td>
</tr>
<tr>
<td align="right">Total:</td>
<td align="left"><form name = "g" id = "g"><input type="text" id="total" /></td>
</tr>
</table>
</form>
에 내가 작동하지 않았다
document.write("paste whole code here");
같은 것을 시도했다.
왜 그렇게하고 싶은거야? –
document.write는 ** 페이지로드 후 ** 사용할 수 없습니다. 그렇지 않으면 전체 페이지를 덮어 씁니다. 언제'document.write()'를 호출할까요? – DividedByZero
'document.write'에 원하는 문자열을 전달할 수 있습니다. 원하는만큼 오래있을 수 있습니다. 문제가 무엇인지는 명확하지 않습니다. –