I would like to find out how javascript can change some text (string)
inside <DIV> tag with event onClick.
That i want to solve with function callWrite(); ... so you can see in
the code. The thing should be simple, not to me ofcourse.
I dont have a clue, but maybe method getElementById may have somthing to
do with solving my problem. I dont know.
html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Proba</title>
</head>
<style type="text/css">
#plavidiv{
background-color:#0066FF;
width:600;
height:20;
}
</style>
<script language="javascript">
function callWrite(){
document.write("i want this to be inside div tag ... but its not!
the .write method seems to erase all html ... ");
}
</script>
<body>
<div id="plavidiv" onClick="zovi();">this is the content i want to
malipulate with javascript...</div>
</body>
</html>