Bug Tracker

Ticket #2287: test-2287-main.html

File test-2287-main.html, 492 bytes (added by dmethvin, 8 years ago)

main file

Line 
1<!DOCTYPE html> 
2<html>
3<head> 
4<title>Test for #2287</title>
5<script type="text/javascript" src="jquery.js"></script> 
6<script type="text/javascript"> 
7
8$(function() {
9        $("#myframe").contents().find("h1").click(function(){
10                alert(this.nodeName+","+this.id);
11        });
12});
13
14</script> 
15<style>
16iframe { width: 500px; height: 300px; }
17</style>
18</head> 
19<body> 
20<form> 
21
22  <iframe id="myframe" src="test-2287-iframe.html"></iframe>
23
24
25</form> 
26
27<div id="frameContainer"></div> 
28
29</body> 
30</html>