here is my approximate code:
<script>
function smth(){........}
var name = smth('fullname');
var hobby = smth('hobby');
</script>
I need to display it normally in the html body. However, every way I tried gave me an alert window or it simply didn't work. I didn't find the similar solution. I know that the way above gives an alert windows as well, but I just wanted to show you the way I get my variables. Thanks in advance.
document.write(name);