Hi talents.. well.. i am new to javascript itself.. i am creating a project in facelet, there i need to use javascript code within my project.. like.. <script type="text/javascript" src="http://<sitename>?var1=a&var2=aa"> </script> like this..... here i want to give a value a to the variable var1 dynamically... that is, based on the first page result, the value ll changed as a (or) b (or) c....... like that.. now i dont know what to do.. please help me.. what should i need to change in my coding.. and how can i give dynamic value to the variable..