By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

How to display a pdf file in the iframe after a alert message in javascript.

P: n/a
If I remove alert messsage,it works fine.But, with alert message nothing is displayed after alert message but the blank screen.Below is the code:

<iframe width = "100%" height = "1100" src = "/website/Image/<%=Image_Path%>"></iframe>

and for alert :

document.getElementById('butNext').disabled=true;
document.getElementById('butNext').style.backgroun dColor='#b2b2b2';
alert("Hi");
Oct 11 '10 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I used <object> tag instead of <iframe>, which is working fine.
Oct 13 '10 #2

danp129
Expert 100+
P: 321
I could not replicate the problem. Replicate the problem in another file with the least amount of code as possible and post your code inside [code] tags.
Oct 13 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.