I manage to find the screen resolution , but i have no idea how to use AJAX in order to pass the variables to PHP without refreshing the page.
I search the forum and didn't find a got example, please help.
viewportwidth = window.innerWidth,
viewportheight = window.innerHeight
Now i need help to use viewportwidth and viewportheight as PHP variables.