different content different browsersize
I tried several things finding codes on the internet, but nothing works.
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).
Kind regards Willem
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 !
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)