Prova in questo modo
codice:
<html> 
<head> 
<script>
frase="ciao!"

function click1(){
	alert (frase)
}

function click2(){
	frase="salve!"
}
</script>
</head> 
<body> 
[img][/img]

 
[img][/img] 


 
</body> 
</html>

ciao