Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:45:51+00:00 2026-06-06T18:45:51+00:00

I want to create and display a self designed window on current webpage instead

  • 0

I want to create and display a self designed window on current webpage instead of popup as you can see on this page
Open the link and click first “Demo” button on that page.

and the same type window appeared when I tried to put a link on this question on stackoverflow which accepted my link.

for example facebook also uses this type of window to display tagged images.
please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:45:53+00:00Added an answer on June 6, 2026 at 6:45 pm

    If you are looking for the exact code to popup a div box then here it is. Displaying the div box in the centre of the browser is harder, and will involve some more javascript to work out the centre.

    Note the ‘return false;’ in the OnClientClick event of the button. This stops the button performing a postback and reloading the entire page.

    <head runat="server">
            <script type="text/javascript" language="javascript">
                function togglePopUp(div_id) {
                    var el = document.getElementById(div_id);
                    if (el.style.display == 'block') { el.style.display = 'none'; }
                    else { el.style.display = 'block'; }
                }
            </script>
        </head>
        <body>
            <form id="form1" runat="server">
                <div>
                <asp:Button ID="btnPopUp" OnClientClick="togglePopUp('popUpDiv'); return false;"
                     text="Pop Up a div boxt" runat="server" />
                </div>
    
                <div id="popUpDiv" 
                style="
                    display:none;
                    position:absolute;
                    top:100px;
                    left:100px;
                    background-color:Gray;
                    z-index: 10002;">
                 My popup box
                 </div>
            </form>
        </body>
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a django app that can upload and display images. However
This is my website: http://www.stustu.co.uk .. I want to create an app that can
I want to create application which would display spatial data on Map. I'm thinking
I want to create a windows phone screen which will display the some users
I want to create a UI that uses a tab control to display multiple
I want to create a web app that lets me create, store and display
I want to display a file tree similarly to java2s.com 'Create a lazy file
I want to create some UIbutton dynamically. And display the tag number. So I
I am trying to create table using TTTableViewController . I want to display an
I want to create a div which has background image and want to display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.