Download your Javascript in the content iFrame

0 like 0 dislike
5 views
Hello, please tell me there is an iFrame on the page, you need to make sure that this iFrame was included my javascript code ( in body)

for example
<\\iframe src="http://apple.com">

where on the website apple.com open in the iframe you need to add the Body tag, for example:



Tried to use the method Jquery.contents()failed, tell me how to solve the problem?
by | 5 views

3 Answers

0 like 0 dislike
Change content in iframe apple.com only possible if the iframe is one of the pages apple.com. Cross-domain access is disabled, for security reasons. You can force your browser settings to disable the restriction.
by
0 like 0 dislike
As mentioned above — no way.
\r
But you can get the page content to the apple server and to print on your site or display through your iframe. And there paste all you want.
by
0 like 0 dislike
Why the frame? you can also in the body add your script will have full access to the page Apple.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
asked May 21, 2019 by nezzard
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,758 users