Hi tiger86, if u can explain ur problem little bit more, i want to know what exactly u want to do.
var is not a command but a way to declare a variable in javascript.
I am explaining my prev. post again, if u still did not get ur problem solved, explain ur problem in detail.
first i want to tell u what i understand from ur post: You want to overwrite the javacript at run-time. if this is correct then my post will help u otherwise explain me ur problem. here is want i explained in prev post. for example u have a page:
<html>
<head></head>
<body>
<script>
function myfunct() {
//do something
}
</script>
</body>
</html>
if u want to change js code in above page,
this a js code todo that :
var tags = document.getElementsByTagName("script");
//Now changing the js code
tags[0].innerHTML = "your new js code should be written here as a string";
again i had not tested it. please let me know how it works?