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?
Microsoft ie11 and edge are perfect for opening pdf. The respondent can take a look.