Is there any way to save a javascript tag in an HTML object? What I would like to do is something like this:
<div id="htmlTag">some text</div>
<script type="text/javascript">
htmlTag.something = {s:"a string",n:1,b:false,a:[3,2,1],f:function(){alert("hello")}}
</script>