2009. 11. 18. 10:00
<HTML>
<HEAD>
<script type='text/javascript'>
var contextNum = 0;
function contextClick(){
if(contextNum == 0)
{
MasterID = 'ctl00_PlaceHolderMain_TransportForms_';
document.getElementById(MasterID+'SendContext').value = "";
}
contextNum = 1;
}
</script>
</HEAD>
<BODY>
<input type='text' id='fo' name='fo' onfocus=contextClick()' />
</BODY>
</HTML>
textbox에 클릭하면 스크립트로 textbox에 aaa가 들어간다..