Hi ,
When i click on a hyperlink it opens a new window,basically i open a PDF document.I am trying to set the window title but it is not getting set.Thne i found that if i open a HTML file then the window title gets set by the following code
<html>
<head>
<script language="javascript">
function callwin()
{
var win = window.open("event.html","mywindow","")
win.document.write('<html><head><title>window</title></head</HTML>');
}
</script>
</head>
<body>
<a href="#" onClick="javascript:callwin()">ClickHere</a>
</body>
</html>
But instead of a html file if i give a pdf doc like this
var win = window.open("manual.pdf","mywindow","")
it opens the doc but does not set the title of the window.
How to correct this problem.Any help will be appreciated.Thanks.



Reply With Quote

Bookmarks