in your design page after closing of title tag you can use java script like this
<script type="text/javascript" language="javascript">
your code goes here...
</script>
and for using jscript go to your solution explorer window and add new item in that you can select jscript and you can use it in the web page.