Reputation: 1669
I'm trying to insert a title in a popup window as follows:
It is in the head element and the title attribute is instantiated. However when I call my javascript window.open method, the window is created and shows "untitled". If I expand the width of the window then I'm seeing what the title should have been.
Does anyone know how to fix this? It's specific with google chrome only since I tested it in firefox and it worked perfectly.
Upvotes: 0
Views: 684
Reputation: 21
This is a bug with Chrome. However, there is a workaround for this.
If you put the following script in the page that opens in the popup window, it seems to work fine.
<script language"text/javascript">
this.window.resizeBy(1,1);
this.window.resizeBy(-1,-1);
</script>
Upvotes: 1