View Full Version : Ifram Scr and Href
05-08-2011, 05:21 AM
Can a ifram connect to a href not a src. I tried but it wont show the page.
05-08-2011, 05:26 AM
iframes use src, not href.
05-08-2011, 05:28 AM
i know but when i do src that only connects to the internet not a other one of my files.
05-08-2011, 05:33 AM
<iframe src="/files/myfile.htm" frameborder="0"></iframe> is how you would do it ( and remove the border to answer your other previous post). if it isnt working correctly you may need to provide more information and/or markup example
05-08-2011, 05:36 AM
05-08-2011, 05:38 AM
Ugh what do you mean by files/myfile.htm were do you put the file name? and is the files just files our is it a variable.
05-08-2011, 05:46 AM
are you referring to something other than an html or php file? you need to be more specific
05-08-2011, 05:50 AM
no just a html file so it would be files/File name
05-08-2011, 05:55 AM
ok, than I already answered your question.
if you want to display an html file in an iframe and the file is located at www.mysite.com/myfile.htm then you would use
or you would use a relative link like so if the page your iframe is on is already on www.mysite.com
05-08-2011, 06:14 AM
wate it not on the internet yet its just on my computer.
05-08-2011, 06:16 AM
what you are referring to would be a "local file". Im guessing you dont have a server installed on your computer or network to test with.
( interested in running a local test server? -- http://portableapps.com/apps/development/xampp )
05-08-2011, 06:49 AM
nope but know i understand.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.