SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: iframe issue

  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iframe issue

    In iframe i have a website,say

    <iframe id="iframeID" src="www.google.com" width="800" height="500">

    When user clicks and enters values inside the searchbox in the website google.com which is inside the iframe i need to trigger an event in javascript that provides the alert message of the content of the search box..

    Is this possible with jquery?

    could somebody help....

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,197
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Sorry but it's not possible to set events or manipulate iframe's unless the URL is on the same domain.

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for answering me.

    If URL is on the same domain, then how to access iframe?


Tags for this Thread

Bookmarks

Posting Permissions

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