Larry Brister
asked on
JavaScript Remove address from popup
The code I inherited is attached.
on the popup there is a url address at the top. How can I remove that?
on the popup there is a url address at the top. How can I remove that?
function winOpen(evnt) {
var windowFeatures = "dialogWidth:444px;dialogHeight:220px;dialogCenter:yes;scroll:no;resizable:yes;status:no;dialogLocation:no;";
var retval = window.showModalDialog("UCCLFilingStates.aspx", "winUCCLFilingStates", windowFeatures);
if (typeof retval != "undefined" || typeof retval == null) {
if (retval != "" && retval != null) {
if (retval == true) {
document.getElementById('<%=hFilingState.ClientID%>').value = "1";
//alert(document.getElementById('<%=hFilingState.ClientID%>').value);
document.getElementById('<%=btnFilingState.ClientID%>').click();
//alert(retval);
}
}
}
}
There's nothing in the code that explicitly puts a URL on the popup, however if there is no <title> defined at the target, UCCLFilingStates.aspx, the default is to present the URL. Try defining a title in the target page and see if that doesn't solve your problem.
>on the popup there is a url address at the top.
Are you talking about the browser's addressbar?
Are you talking about the browser's addressbar?
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CodeCruiser:
Thanks...also...turns out this is a Firfox issue as well. Firefox doesn't hide the url
Thanks...also...turns out this is a Firfox issue as well. Firefox doesn't hide the url
ASKER
Thanks...will now track down Firefox issue.
http://msdn.microsoft.com/