Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

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?
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

Avatar of haloexpertsexchange
haloexpertsexchange
Flag of United States of America image

Avatar of Amick
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?
Avatar of Larry Brister

ASKER

CodeCruiser:
Attached is a screen print as well as the current function
User generated image
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

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
CodeCruiser:
Thanks...also...turns out this is a Firfox issue as well.  Firefox doesn't hide the url
Thanks...will now track down Firefox issue.