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 6872129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:53:20+00:00 2026-05-27T03:53:20+00:00

How to restrict browser view to Landscape on a mobile browser in HTML5? On

  • 0

How to restrict browser view to Landscape on a mobile browser in HTML5? On potrait view, it should display “Switch to landscape mode” and load when it is turned to landscape mode.

  • 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-27T03:53:20+00:00Added an answer on May 27, 2026 at 3:53 am

    you can use the “onorientationchange” event of your browser. I extracted a working example from one of my testing projects: http://jsfiddle.net/r9b8D/

    Its not exactly what you are looking for, but it shows the implementation of “onorientationchange”. Copy the jsfiddle example to your host and navigate to the site with your mobile phone to see what happens – Maybe you can navigate to jsfiddle with your phone, i am not sure.

    Feel free to modify the example to fit your needs.

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

Sidebar

Related Questions

I want to restrict the browser to JPG files when I click on browse
On a page (which I maintain for myself and thus can restrict browser support
I have a xulrunner application that uses browser component to display HTML content. For
I am new to mobile app development and I dont want restrict myself to
How to restrict the maximum number of characters that can be entered into an
How can I restrict the list of drive letters displayed by the WPF SaveFileDialog?
I would like to restrict access to my /admin URL to internal IP addresses
I want to restrict entry of new item into sharepoint calendar list with the
I want to restrict the users from using the links in a UIWebView. Hence,
I am trying to restrict the results returned from a query. If a user

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.