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?
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);
                    }
                }
            }
        }

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
 
CodeCruiserCommented:
So this

var windowFeatures = "dialogWidth:460px;dialogHeight:230px;dialogCenter:yes;scroll:no;resizable:yes;status:no;";

can be

var windowFeatures = "dialogWidth:460px;dialogHeight:230px;dialogCenter:yes;scroll:no;resizable:yes;status:no;location:no;";
0
 
haloexpertsexchangeCommented:
0
 
AmickCommented:
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.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CodeCruiserCommented:
>on the popup there is a url address at the top.
Are you talking about the browser's addressbar?
0
 
Larry Bristersr. DeveloperAuthor Commented:
CodeCruiser:
Attached is a screen print as well as the current function
Screenprint
function winOpen(evnt) {
                    var windowFeatures = "dialogWidth:460px;dialogHeight:230px;dialogCenter:yes;scroll:no;resizable:yes;status:no;";
                    window.showModalDialog("UCCLFilingStates.aspx", "winUCCLFilingStates", windowFeatures);
                }

Open in new window

0
 
CodeCruiserCommented:
0
 
Larry Bristersr. DeveloperAuthor Commented:
CodeCruiser:
Thanks...also...turns out this is a Firfox issue as well.  Firefox doesn't hide the url
0
 
Larry Bristersr. DeveloperAuthor Commented:
Thanks...will now track down Firefox issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.