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 7997727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:01:52+00:00 2026-06-04T15:01:52+00:00

I am opening a Child Modal Dialog window from my parent web page. The

  • 0

I am opening a Child Modal Dialog window from my parent web page. The JavaScript code for opening the Dialog is as follows:-

function openmodalWin() {
        window.showModalDialog("ClockPopUP.aspx", "Clock", "dialogWidth:550px;dialogHeight:350px,");
        }

The Asp Code is as Follows:-

<asp:Button ID="Button1" runat="server" Text="Lunch" CausesValidation="false" CssClass="bigbuttons" style="background:url(../App_Themes/Images/green-box.gif)" Font-Bold="True"  ForeColor="White" Font-Size="Large" OnClientClick="openmodalWin(); return false;"  

In my "ClockPopUp.aspx" I had used only one jQuery stop watch plugin which is just for showing purpose and no use except it. My requirement is that I want that as the user will close the ModalDialog, on the parent page we can capture the time when the Pop up will be closed, or the ShowmodalDialog will return datetime at window.close().

Please try to solve this issue as I’m not so good in JavaScript.

  • 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-04T15:01:54+00:00Added an answer on June 4, 2026 at 3:01 pm

    jQuery UI has this functionality without the need to access another aspx page.

    However, window.showModalDialog returns a value, so you’d need to alter your aspx to return something meaningful i.e.

    window.returnValue = “whatever”;
    window.close();

    Then you can call it using

    var returnValue = window.showModalDialog(...)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a parent window from which i open a modal dialog on button
I am opening a modal popup window. Then I access a parent window textbox
In my application I am opening my application page in a Child Window. When
Problem description If I make a non-modal window as a child window through setting
I'm opening an Activity using this: startActivity(new Intent(Parent.this, Child.class)); And on the child, I
I'm trying to get notified when the child window I'm opening has its document
I am opening new pop-up page in new window. Now When I am pressing
I am opening a child window for Facebook sharing this way: window.open(sharingUrl,'','toolbar=0,status=0,width=626,height=436'); The window
I want to execute a function when an opened child window is closed. Child
How to close the current window from javascript without any events like onclick or

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.