Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2003
    Location
    iran,isfahan
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile how can i change value of inputbox in other window

    hi

    I have a window in my page and i open another window in this window by window.open(url,feather)
    with specific url, I want to change value of the inputbox that is exist on the second window how can i do that

    thanks alot

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    411
    Thanks
    2
    Thanked 32 Times in 32 Posts
    open it this way:

    x=window.open(url,etc

    Then reference it as:

    x.document.forms['formname'].fieldname.value=something;

    If the page in the second window is not from the same domain you get an "access denied" error becaue scripting cross-domain is a security violation.
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&


  •  

    Posting Permissions

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