iframe using javascript?
3 posters
Page 1 of 1
iframe using javascript?
Hello how to make iframe using javascript
how to convert this code to javascript
how to convert this code to javascript
- Code:
<iframe src="http://domain.com"></iframe>
cupcup- Forumember
- Posts : 36
Reputation : 1
Language : english
Re: iframe using javascript?
i just want to convert this code
- Code:
<iframe src="domain.com"></iframe>
- Code:
<script src="domain.com/iframe.js"></script>
Last edited by cupcup on Wed 26 Nov 2014, 14:40; edited 1 time in total
cupcup- Forumember
- Posts : 36
Reputation : 1
Language : english
Re: iframe using javascript?
its already javascript
the url links to the javascript and uses it on your site .. but lets say u took it from another site you would have to include the whole link to the js
in the source code of the site just click the .js link and it will take you to the javascript and you can get the full link in the header of your browser
the url links to the javascript and uses it on your site .. but lets say u took it from another site you would have to include the whole link to the js
in the source code of the site just click the .js link and it will take you to the javascript and you can get the full link in the header of your browser
Re: iframe using javascript?
I have already guessed, you better keep quiet if you can not make coding iframe in javascript_Twisted_Mods_ wrote:its already javascript
the url links to the javascript and uses it on your site .. but lets say u took it from another site you would have to include the whole link to the js
in the source code of the site just click the .js link and it will take you to the javascript and you can get the full link in the header of your browser
cupcup- Forumember
- Posts : 36
Reputation : 1
Language : english
Re: iframe using javascript?
theres many ways u can write it like i said b4 it depends what u want to do with it
and being rude to people will get you nowhere in life ..
but enjoy i will no longer try to help you
have a nice day
- Code:
$('somelement').append('<iframe src="domain.com"></iframe>');
str += '<iframe src="domain.com"></iframe>'
document.getElementById("namegen").innerHTML=str;
and being rude to people will get you nowhere in life ..
but enjoy i will no longer try to help you
have a nice day
Re: iframe using javascript?
In the future, please try to remember everyone here is trying to help you. There is no need to be rude.
What does the code do?
What does the code do?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: iframe using javascript?
sorry
doesn't work
doesn't work
cupcup- Forumember
- Posts : 36
Reputation : 1
Language : english
Re: iframe using javascript?
Could you please tell us what this code will do?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: iframe using javascript?
lucky for you i love to help people but next time your disrespectful your own your own
you can use this code to attach the iframe to and element
places it at bottom of the page
this code will replace the inner html of the body
this pretty much does same thing
without knowing what your doing with the code or where your placing it i cant give u any more info
you can use this code to attach the iframe to and element
places it at bottom of the page
- Code:
$('body').append('<iframe width="500px" height="500px" src="/portal"></iframe>');
this code will replace the inner html of the body
- Code:
document.body.innerHTML = '<iframe width="500px" height="500px" src="/portal"></iframe>';
this pretty much does same thing
- Code:
var str = '<iframe src="/portal"></iframe>';
$( "body" ).html(str);
without knowing what your doing with the code or where your placing it i cant give u any more info
Similar topics
» Iframe Chat Box
» light switch for iframe
» Mobile version in iframe
» Issue with iframe and googlemaps
» Forumotion in Iframe problem.
» light switch for iframe
» Mobile version in iframe
» Issue with iframe and googlemaps
» Forumotion in Iframe problem.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum