snowberb – 11-12 Sep 19
How can I change the PDF title after using an
iframe
to display a base64
pdf?
I tried with:
![No description](https://cdn.answeroverflow.com/1153649839255605318/image.png)
8 Replies
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Tried like this and didnt work:
Btw im not trying to change the navigator tab name, I want to change the PDF file name
![No description](https://cdn.answeroverflow.com/1153698132538970132/image.png)
![No description](https://cdn.answeroverflow.com/1153700065773355028/image.png)
You want to change frame's title attribute?
Try querying the iframe element and then just change its title attribute
Something like :
no, the file name
not the tab name
I literally sent a screenshot
On what DOM element that file name is set?
You should be able to modify, but i wonder why do you want to change the title instead of setting it already to the correct one?
You could also try changing the title in the base64 - decode it, change title, encode and put back into the iframe
This thread hasn’t had any activity in 36 hours, so it’s now locked.
Threads are closed automatically after 36 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1153649839402397707