Results 1 to 2 of 2

Thread: different content different browsersize

  1. #1
    Join Date
    May 2012

    Question different content different browsersize

    Good morning,

    I tried several things finding codes on the internet, but nothing works.
    Because I don't know javascript myself I really can use your help.

    I already can use different css when browsersize changes, so that is great.
    But what I also want is different content for different browsersize (and not just hide or show it with css).

    Is this possible with javascript?

    Kind regards Willem

  2. #2
    Join Date
    May 2012
    Hey !

    It is definitely possible JavaScript

    Simplest approach is - Have 3 different JS files for 3 different browser sizes. For meaning statically if you include one JS file, that should be working fine in a particular browser size.

    The onload of the page call a method -> You should calculate the browser sizes in this method and also could write some switch cases, and load one of these JS files for each browser size.

    You will get lot of code snippets for dynamic JS loading

    Hope this helps !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center