How to Check a url whether it can be embed in iframe in javascript
up vote
0
down vote
favorite
I'm having a user input field in HTML that takes a url link from user. The link is embedded into dynamically create iframe. But some urls don't load in iframe due to x-frame-options. I need to dynamically validate this and prompt user to input correct embed link. Are there any ways to check this. help needed.
javascript jquery html5 iframe
add a comment |
up vote
0
down vote
favorite
I'm having a user input field in HTML that takes a url link from user. The link is embedded into dynamically create iframe. But some urls don't load in iframe due to x-frame-options. I need to dynamically validate this and prompt user to input correct embed link. Are there any ways to check this. help needed.
javascript jquery html5 iframe
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm having a user input field in HTML that takes a url link from user. The link is embedded into dynamically create iframe. But some urls don't load in iframe due to x-frame-options. I need to dynamically validate this and prompt user to input correct embed link. Are there any ways to check this. help needed.
javascript jquery html5 iframe
I'm having a user input field in HTML that takes a url link from user. The link is embedded into dynamically create iframe. But some urls don't load in iframe due to x-frame-options. I need to dynamically validate this and prompt user to input correct embed link. Are there any ways to check this. help needed.
javascript jquery html5 iframe
javascript jquery html5 iframe
edited Nov 10 at 16:44
asked Nov 10 at 15:40
Sriharsha K
135
135
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46
add a comment |
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240536%2fhow-to-check-a-url-whether-it-can-be-embed-in-iframe-in-javascript%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Unfortunately there is no way to check using javascript in browser. No events get triggered either in an iframe to give feedback
– charlietfl
Nov 10 at 15:46