Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1005443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:17:47+00:00 2026-05-16T08:17:47+00:00

Browsers can display certain media inline, and will provided they are sent with content-disposition:

  • 0

Browsers can display certain media inline, and will provided they are sent with content-disposition: inline. What’s the best way to detect whether the browser is capable of doing so with a particular type of media?

I am running into the question lately with PDFs and Mac/FF, which seems to refuse to display PDFs inline (actually, in iFrame), instead prompting a download. I don’t mind the forced download; I’d just like to be able to anticipate it so that I can give the end user a nice “download” link rather than an iFrame that fails at displaying inline content. My current solution is just browser detection (sample code below), but surely there must be a better mode.

var isMacFF = window.navigator.userAgent.search(/Mozilla.*Mac/i) != -1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:17:47+00:00Added an answer on May 16, 2026 at 8:17 am

    This doesn’t directly answer the question, but something you need to be aware when analyzing any answer you get – you can NOT reliably 100% determine that due to assorted browser plug-ins.

    Specifically, in case of FireFox, look at PDF Downloader as an example – it basically allows the user 100% full control over how PDF gets displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a web service for my clients so they can display
I'm developing a website and certain images will not display when returned to IE
I know that: browsers can download two components in parallel per hostname example www.example.com
Ignoring the IE case, are there any other browsers that can't understand the application/xhtml+xml
In many browsers today you can click and drag images. Can I leverage this
How can I find of all the browsers and their details that are installed
I can browse using the desktop browsers via ..localhost:54647/... and from windows mobile emulators
How can I hide an HTML form legend from visual browsers, using CSS, in
which javascript framework can be used for all browsers
For each of the modern browsers are there well known hooks I can tie

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.