returning a value from a popup box

Discussion in 'JavaScript' started by dazi_behappy, Oct 25, 2006.

  1. #1
    Hi all, im having real trouble returning a value from a popup window.
    Has any1 got a simple example that I could have a look at?

    ive tried the following, but with no luck :(

    Parent page- code included into the page_load:
    
    AddressFiller.Attributes.Add("onclick", "window.open('AddressFiller.aspx',null,'left=400, top=100, height=250, width= 250, status=n o, resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no');");
    
    Code (markup):
    AddressFiller.aspx
    
    Close.Attributes.Add("onclick", "return window.opener.TextBox1.value='something';");
    
    Code (markup):
    The coding is done is ASP.NET. The above code is specifying the javascript code that should be execuuted on a button click.

    Any ideas why 'something' is not being outputted into TextBox1 on the parent window?
     
    dazi_behappy, Oct 25, 2006 IP