how to change html <title> in java script?

0 votes
51 views
asked Oct 3, 2013 in HTML by kalpana (3,995 points)
HI All

  how to change html <title> in java script?

please give any sample code?

1 Answer

0 votes
answered Oct 3, 2013 by admin (8,115 points)

HI kalpana

   use this code it's will slove your problem..

<script type="text/javascript">

function changeTitle(title) { document.title = title; }
</script>
...