/    Sign up×
Community /Pin to ProfileBookmark

iFrame: Outside Linking Works in IE but Not Firefox.

I am currently having trouble getting links from outside an iFrame to correctly load their corresponding iFrame into the same page. The set-up I have currently works in IE and Netscape, but in Firefox the links link to the iFrame as a separate page. There is a js code (the last one in my js section) that I am currently using that makes this outside linking work in IE. Is there a different js script or another form that’ll allow this to work in Firefox as well? I know iFrames are something people often try to stay away from. Is there another way to accomplish the same outcome that I am currently achieving with iFrames in IE? I know you can do this with css, but I am also currently using my own custom scrollbars with the iFrames. If I do this in css (help would also be appreciated with using css in this manner), does anyone know of a way to create custom scrollbars like I have on the “Journal” portion of my site?

Here is the temporary version of the site that I have up online (you will be able to get all my source codes off of the sites there):

[url]http://carroll1.cc.edu/~tgiles/tom/nicolesteed/bio.htm[/url]

Any help or suggestions would be helpful. These may include site redesigns if it is impossible to get this to work in Firefox as well (though that would be preferable). Thanks for all your time and consideration.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Nov 30.2004 — The easiest way to link to an iframe is to give the iframe and name and the put a target into the link tag. Below should work. Of course you would want to change the values to whatever you need them to be.

<iframe height="100px" width="500px" name="iframe">

<a href="page.html" target="iframe">
×

Success!

Help @sirthomas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...