dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: capture mousedown events inside Iframe

  1. #1
    Join Date
    Feb 2008
    Posts
    0

    capture mousedown events inside Iframe

    I want to capture the mouse inside the iframe how would i do this???

    This is my code when i click inside the iframe it does not work.

    Code:

    <HTML>
    <HEAD>
    <script language="JavaScript">
    function OnMouseDown(oEvent)
    {
    alert('coucou');
    }
    document.onmousedown = OnMouseDown;
    </script>
    </HEAD>

    <BODY>
    <IFRAME TOP='100px'; LEFT='100px'; WIDTH='400px'; HIGHT='400px'; src='http://www.yahoo.com'></IFRAME>
    </BODY>
    </HTML>


    Please Help me,
    Thanks,
    Harsh

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Welcome to DevX
    Quote Originally Posted by harshpandya
    This is my code when i click inside the iframe it does not work.
    What does this mean? What does happen with you click inside the iFrame?

Similar Threads

  1. Redirecting inside an iFrame?
    By gr3gg0r in forum Web
    Replies: 1
    Last Post: 01-11-2008, 11:14 AM
  2. Sending MouseDown Events To The Screen
    By Corallis in forum Java
    Replies: 1
    Last Post: 12-10-2005, 07:28 PM
  3. Redirect a website inside an iframe
    By Acceris in forum ASP.NET
    Replies: 6
    Last Post: 06-17-2005, 01:57 AM
  4. Replies: 2
    Last Post: 02-18-2003, 07:49 AM
  5. Event capture From IFRAME
    By chhean in forum Web
    Replies: 0
    Last Post: 06-06-2001, 09:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center