/    Sign up×
Community /Pin to ProfileBookmark

Iframe 404 Error on Page Load

Hi All,
On page load Iframe is showing the 404 error code. The iframe displays pages just fine when users click various links after the page is loaded. How do I display something other than the error code on page load? Thanks in advance for your reply.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@ProSenceFeb 26.2013 — I think there is a plugin on Wordpress, if you are using Wordpress then it would be easy for you to install the plugin..

Any 404 error pages would be forwarded to home page..
Copy linkTweet thisAlerts:
@jedaisoulMar 01.2013 — You have not posted your code, so I can't be certain, but I suspect the problem is the SRC attribute of the iframe lacks a valid URL. I.e.

<iframe src="somepage.html" etc...
Copy linkTweet thisAlerts:
@brandonatorMar 02.2013 — Try something like this, you can adjust the values (this code will create an iframe across the whole page)

[CODE]<!DOCTYPE html>
<style>
*{margin:0;padding:0}
html, body {height:100%;width:100%;overflow:hidden}
table {height:100%;width:100%;table-layout:static;border-collapse:collapse}
iframe {height:100%;width:100%}
</style>
</head>
<table>
<iframe src="http://mywebsite/somepage.html" frameborder="0"></td></tr>
</table>
</body>
</html>[/CODE]
×

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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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