[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

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

0
lrbrister
Asked:
lrbrister
1 Solution
 
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
 
CodeCruiserCommented:
>on the popup there is a url address at the top.
Are you talking about the browser's addressbar?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
lrbristerAuthor 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
 
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
 
lrbristerAuthor Commented:
CodeCruiser:
Thanks...also...turns out this is a Firfox issue as well.  Firefox doesn't hide the url
0
 
lrbristerAuthor Commented:
Thanks...will now track down Firefox issue.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now