P
Paul Moffitt
We have a Javascript function that opens an electronic document in a
subwindow. The Title bar of the subwindow shows the filepath of the
document. Looking at the script below is there any way to add script
to the function to either not show the path in the title bar or
replace the path with other text?
function launchEDoc() {
var subWindow
window.document.title = "InSight"
if (document.forms[0].EDoc.length){
for (var i = 0; i < document.forms[0].EDoc.length; i++)
if (document.forms[0].EDoc.checked)
var doc = escape(document.forms[0].EDoc.value)
}else{
var doc = escape(document.forms[0].EDoc.value)
}
subWindow = window.open("LaunchEDoc.asp?EDoc=" + doc, "_blank",
"toolbar=0,directories=no,location=0,status=0,menubar=0,scrollbars=1,resizable
=1, width=950, height=580, left=0px, top=100px")
if(subWindow.opener) {
subWindow.opener = window
}
subWindow.focus()
}
Thank you
Paul Moffitt
subwindow. The Title bar of the subwindow shows the filepath of the
document. Looking at the script below is there any way to add script
to the function to either not show the path in the title bar or
replace the path with other text?
function launchEDoc() {
var subWindow
window.document.title = "InSight"
if (document.forms[0].EDoc.length){
for (var i = 0; i < document.forms[0].EDoc.length; i++)
if (document.forms[0].EDoc.checked)
var doc = escape(document.forms[0].EDoc.value)
}else{
var doc = escape(document.forms[0].EDoc.value)
}
subWindow = window.open("LaunchEDoc.asp?EDoc=" + doc, "_blank",
"toolbar=0,directories=no,location=0,status=0,menubar=0,scrollbars=1,resizable
=1, width=950, height=580, left=0px, top=100px")
if(subWindow.opener) {
subWindow.opener = window
}
subWindow.focus()
}
Thank you
Paul Moffitt