Setting Window Name(title) dynamically for a pop up window
var NewWin = openUrlInWindow(externalurl, "NewDoc",PopupWindowFeatures);
Now this works fine except that the url is displayed in the title bar by default and the user wants it displayed by the document name. I have tried setting the Document name value to the html title property as per below but it is not reflected in the title bar.
NewWin.document.title = Document Name;
I have also tried some other approaches like setting a delay and executing the above expression after the document is loaded, also tried to open the url in a specific frame in the html page but none of it seems to work, if anyone has any idea on how to implement this or has faced a similar issue please help with this.
This is the definition of openUrlInWindow. so please send document name as the second parameter in your method.You can use jsp to read the document name from a property in clipboard. you can also hide the location bar(this parameter has to be set in sOptions). I suggest try configuring a button(OOTB) with to do open url in window and look into the options.Please see below screenshot.
Thanks for your reply, but I have tried this already and the second parameter of openurlinwindow function value does not get set into the title bar of the window... it is the html reference of the window I guess, i.e the window name but not the title. I will check whether passing the window name value works in the ootb functionality and see if it gets set into the title...