Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Load HTML body text based on media= to detect screen size.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #188200
    lkeeney
    Participant

    I have developed a webpage where I need to load different content in the body of the page depending on the screen size.

    I have the web page now in which I loaded a different css file which hid different parts of the code on the page, but I didn’t realize this only hides the code, but the code is still read by the browser, just not displayed.

    Is there a way I can save the two different versions of the code I have in separate files and load them into the body of the code based on screen size?

    If it helps, here is the link to the demo site I am working on.
    Demo website

    #188298
    lkeeney
    Participant

    I just resolved my own problem by using a completely different technique.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.