/    Sign up×
Community /Pin to ProfileBookmark

Avoid iframe File Not Found Error on Page Load

Hi Everyone,
I have an iframe on one of my pages and the error message, File Not Found, is displayed inside of the iframe as soon as the page loads. However, after the page loads if I click on a link which was coded to display another page in the iframe, the iframe would display the page as it should. My question is how do I make the iframe display something other than the File Not Found Error message when the page loads. Any suggestions will be greatly appreciated, thanks in advance for your help.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyMar 07.2013 — Your description sounds like one of two things are happening: Either the URL in the 'src' attribute of the <iframe> changes when you reload the page so it works the second time, or there's a problem with the document being used in the <iframe>. Without seeing your actual code, there's no way to tell.
×

Success!

Help @Developer1 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 5.8,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...