생각하지도 못했다.. 이런 경우도 있군..
innerHTML를 했을때 & 표시가 안돼더라.. -_-;;
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> eyes of siche</title> </head> <body> <div id="div" style="height: 15px; border: 1px solid red"></div> <br /> <input type="button" onclick="document.getElementById('div').innerHTML = '&'" value="click 1" /> <input type="button" onclick="document.getElementById('div').innerHTML = '&'" value="click 2" /> <input type="button" onclick="document.getElementById('div').innerHTML = '&amp;'" value="click 3" /> </body> </html> |
흠… 왜 이럴까… -_-;; 거참..
방법은 이렇지만 왜 이래야 하는지 모르겠다.. -_-;;