Like this:
$(".youtube").load("https://youtube.com")
I got error: CORS
Like this:
$(".youtube").load("https://youtube.com")
I got error: CORS
For further actions, you may consider blocking this person and/or reporting abuse
pauq -
Yappaholic The Junior -
abhishekpanthee -
Stjepan -
Top comments (4)
Will you please elaborate your use case please? You want to embed a youtube video in HTML page and loading the url with ajax? Or something else?
I was edited my post.
Well I am assuming you have a class in html tag or div where you want to load any youtube video or page. You can use iframe or embed tag instead I guess!
Thanks