C
cdmason
My javascript is pretty rough, I'm primarly a PHP user, so I hope this
isn't an obvious question.
I'm working on a large website that features links to several uploaded
..pdf and .doc files.
These links do not automatically spawn a new window, though generally
the user opens them in tabs in Firefox or Safari.
The user has requested that when a .pfd or .doc file is opened in a tab
(via a broswer plug-in) that the title of the tab be set to a given
variable (rather than the name of the file, as is the current default).
Currently the site is all in mysql/php and basic HTML. I don't believe
this is possible in those languages, but I'm hoping a little javascript
could set the title of the new page, without changing the way the
browser handles the file types or involving a major rewrite.
Any suggestions?
isn't an obvious question.
I'm working on a large website that features links to several uploaded
..pdf and .doc files.
These links do not automatically spawn a new window, though generally
the user opens them in tabs in Firefox or Safari.
The user has requested that when a .pfd or .doc file is opened in a tab
(via a broswer plug-in) that the title of the tab be set to a given
variable (rather than the name of the file, as is the current default).
Currently the site is all in mysql/php and basic HTML. I don't believe
this is possible in those languages, but I'm hoping a little javascript
could set the title of the new page, without changing the way the
browser handles the file types or involving a major rewrite.
Any suggestions?