javascript - Display message in iframe, if there is a .doc file which cannot be displayed -


i using iframe display pdf or doc file on page. pdf without doubt displayed doc file downloaded , aware why.

now problem want display message in iframe file doc files cannot displayed , need downloaded view.

till have searched , found various solutions display message or while loading iframe guess here not case of loading anything.

here fiddle

show sample code can give best solution. can use js fiddle well.

otherwise can add if condition check check file type , show alert notification users.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -