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 StealthRT's Avatar
    Join Date
    Aug 2006
    Posts
    188
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Question Clicking a button OUTSIDE an iframe

    Hey all i am trying to "click" a button thats outside of the iframe (on the main page)..

    I can not seem to get it working... here is the code
    Code:
    Basic.html
     ===============
    <iframe width="600px" height="250px" id="infoFrame" name="infoFrame" src="test.html" scrolling="no" frameborder="0"></iframe>
    <input name="closeSlide" id="closeSlide" type="button" onclick="$('.btn-slide2').click();" />
    Code:
    test.html
    ===============
    <input name="close" type="button" onclick="parent.document.getElementById('closeSlide').Click();" />
    Any help would be awesome!

    David

  • #2
    Banned
    Join Date
    Nov 2008
    Location
    not found
    Posts
    284
    Thanks
    0
    Thanked 53 Times in 51 Posts
    <input name="close" type="button" onclick="parent.document.getElementById('closeSlide').onclick();" />


  •  

    Posting Permissions

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