locked
Titlebar=no still shows the Scrollbar RRS feed

  • Question

  • User1769015664 posted

    In window.open for an aspx page; I have the property titlebar set to "no" but the page still shows the title. Also, how do I display this popup without displaying the url?

    Who do I need to do to get it to work?

    Wednesday, August 23, 2017 4:16 PM

All replies

  • User2103319870 posted

    You might consider opening a popup window using Jquery dialog and then load the page

       <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
        <link rel="stylesheet" href="/resources/demos/style.css">
        <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
            <script>
                $(function () {
                    // initialize dialog
                    var dialog1 = $("#dialog1").dialog({
                        autoOpen: false,
                        height: 600,
                        width: 350
                    });
    
                    $("#button1").click(function () {
                        // load content and open dialog
                        dialog1.load('YourPage.aspx').dialog('open');
                    });
                   
                });
            </script>
            <div id="dialog1" title="Popup Window"></div>
            <input type="button" id="button1" value="Open Window" /> 

    Wednesday, August 23, 2017 5:41 PM
  • User347430248 posted

    Hi NJ2,

    below is an example:

     function demo()
            {
                window.open("https://www.google.com.sg/?gfe_rd=cr&ei=UTmeWfSlEqnz8AfLsKTACw&gws_rd=ssl", "", "directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350");
    
            }

    Note:-

    some of the properties/ parameters are only supported in some of the browsers. so when you try to make a test with different browsers. you will notice that in some browsers some property is working and in other browser same property is not working.

    Reference:

    Window open() Method

    Regards

    Deepak

    Thursday, August 24, 2017 2:47 AM