how to change title of web page with javascript from <object>
tag?
this code from main.html that include <object>
<html>
<head>
<title>main title</title>
</head>
<body>
<h1>home</h1>
<div>
<object type="text/html" data="home.html"></object>
</div>
<script src="script.js"></script>
</body>
</html>
and in home.html i want change main.html <title>
tag with home title by click a button
this code from my home.html
<html>
<body>
<button onclick="home();">change main title</button>
<script src="script.js"></script>
</body>
</html>
and this my javascript code
function home() {
window.parent.title = "home title";
}