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
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Parent: onFocus="close(child);"

    I can't find an answer anywhere.

    I have a submit button that opens a PayPal cart window using JS:


    <input type="submit" name="submit" value="Add to Cart!" onclick="window.open('','paypal','width=800,height=520,scrollbars=yes,resizable=yes,status=yes')">

    How can I close this cart window when the parent is onFocus()? IE + FF
    <div> - putting your mind in a box since 1997

  • #2
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    Other ideas:

    Is it possible to do this -

    1) Click form submit button, window opens with 2 framed page
    2) One frame has my code, the other frame has the URL that the form was to open.


    or...


    1) Click form submit, opens page (using target="_self") with the URL that the form was to open inside an iFrame.
    <div> - putting your mind in a box since 1997


  •  

    Posting Permissions

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