CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #5
    Join Date
    Oct 2006
    Location
    slavia
    Posts
    42

    Re: Pop up window with Yes/No button

    @julieth..
    may be u can try it by creating a new window pop-up from javascript.
    that new window can be controlled from ur current page.

    try to understand this code please ...
    function dirtypop()
    {
    var generator=window.open('','name','height=400,width=500');

    generator.document.write('<html><head><title>Popup</title>');
    generator.document.write('<link rel="stylesheet" href="style.css">');
    generator.document.write('</head><body>');
    generator.document.write('<p>This page was generated by
    the main window.</p>');
    generator.document.write('<p><a href="javascript:self.close()">
    Close</a> the popup.</p>');
    generator.document.write('</body></html>');
    generator.document.close();
    }

    the parent form that call this new window in JavaScript is called
    opener

    have a nice try ..
    Last edited by szpilman; October 7th, 2006 at 08:12 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured