javascript - I have a question about setting the page title after opening a pdf file on a web page?
为情所困
为情所困 2017-05-19 10:15:26
0
1
465

I need to open a pdf file in a web page. I use the original method window.open(myurl) in javascript to open the pdf. Everything else is fine, except that the title of the page displays the information in the url. I want to set my own The title has never had any effect. I have tried some methods on the Internet, including setTitle and setTimeout, but they have no effect.

I use other methods, such as iframe, which will be blocked by the browser, may be cross-domain, and is considered unsafe. I used the pdfobject.js library again, and everything else was normal, but I couldn't save in chrome. I guess there was a bug in the chrome plugin.

What method do you usually use? Which method will not have these problems?

为情所困
为情所困

reply all(1)
某草草

Microsoft ie11 and edge are perfect for opening pdf. The respondent can take a look.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template