chromium/chrome/test/data/javaScriptTitle.html

<html>
<head>
<script language="JavaScript">
function message()
{
  document.title = "Title from script javascript enabled";
}
</script>
<title>This is html title</title></head>

<body onload="message()"></body>
</html>