iv noticed that unity's javascript is quite different from the web-based javascript.
iv been playing around with the javascript in unity for a few hours now and iv come to bit of a road block.
i was wondering how i could implement this code into unity javascript:
<html>
<head>
<script type='text/javascript'>
function Chat(text)
{
document.getElementById('chatarea').innerHTML += text + "
"
};
</script>
</head>
<body>
<input type='text' id='chatbox_send'>
<input type='submit' onclick=Chat(chatbox_send.value) value='Send'>
<p id='chatarea'><p>
</body>
</html>
i have a box already set up for the submitted text to go in...what i cant do is set the box to retrieve and make an input box (which im looking into).
any help please?
thanks in advance