質問編集履歴

2

追記

2022/12/01 21:00

投稿

pgpr
pgpr

スコア4

test CHANGED
File without changes
test CHANGED
@@ -43,3 +43,27 @@
43
43
 
44
44
  <iframe id="a" style="width:100%;height:100%"></iframe>
45
45
  ```
46
+
47
+
48
+ ```ここに言語を入力
49
+ これ以外の方法はあるのでしょうか?
50
+ <script>
51
+ window.onload=function(){
52
+ document.getElementById('a').contentWindow.window.onmousemove=function(){
53
+ x=document.getElementById('a').contentWindow.window.event.pageX;
54
+ y=document.getElementById('a').contentWindow.window.event.pageY;
55
+ document.title=x+" "+y;
56
+ }
57
+ }
58
+ </script>
59
+
60
+ <style>
61
+ body,html{
62
+ height:100%;
63
+ margin:0;
64
+ }
65
+ </style>
66
+
67
+ <iframe id="a" style="width:100%;height:100%"></iframe>
68
+
69
+ ```

1

追記

2022/12/01 20:52

投稿

pgpr
pgpr

スコア4

test CHANGED
File without changes
test CHANGED
@@ -22,3 +22,24 @@
22
22
 
23
23
  <iframe style="width:100%;height:100%"></iframe>
24
24
  ```
25
+
26
+ ```ここに言語を入力
27
+ <script>
28
+ window.onload=function(){
29
+ document.getElementById("a").onmousemove=function(){
30
+ x=event.clientX;
31
+ y=event.clientY;
32
+ document.title=x+" "+y;
33
+ }
34
+ }
35
+ </script>
36
+
37
+ <style>
38
+ body,html{
39
+ height:100%;
40
+ margin:0;
41
+ }
42
+ </style>
43
+
44
+ <iframe id="a" style="width:100%;height:100%"></iframe>
45
+ ```