I am trying to rename a new tab I am opening up. This new tab contains an iframe
with an image as the source. This is how I am opening the tab, but can't seem to get document.title
to work.
var customTab = window.open();
customTab && customTab.document.title = 'My new tab';//this doesn't work
customTab &&
customTab.document.write(
'<iframe src="' +
myImage +
'" style="border: none;"></iframe>'
);
Any ideas would be much appreciated.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/Agu1h8b
Comments
Post a Comment