Can't title pop up page with document.write

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:

Search reports by browser:

I am creating a new popup window using and document.write. I include a line that gives the page a title but the name of the new window always comes up "Untitled."

Test page Workaround is not included
Reported by: Jenny Volvovski.

(Orphaned), Safari | Reported on 21 June 2005.


(Add your own)

Posted by TarquinWJ on 22 June 2005


Works for me in Safari 1.0 and 1.1 (I do not have 1.2, 1.3 or 2.0 to test right now). Does this only fail in specific versions?

Posted by Tino Zijdel on 22 June 2005



mywindow.document.title = 'My Title';

right after mywindow.document.close(); do anything?

Posted by Jenny Volvovski on 25 June 2005


1. it doesn't work in Safari 1.3 and 2.0
2. mywindow.document.title = 'My Title'; doesn't seem to work.

Posted by Brian Jones on 22 August 2005


put your document.write in another page (that the first one opens) and it does work...

Posted by Kev on 31 August 2005


I've just discovered this myself with Safari 1.3 / 1.3.1

Brian, could you give me more information on your work-around as this would really help me out.

Posted by Mark Hardy on 19 December 2005


If anyone has found a fix or a workaround, please post details! It's interesting that if the newly-created window/document contains the JavaScript code 'alert(document.title)', the desired title is displayed in the alert box, but the window itself remains 'Untitled'.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.