How set screen orientation to landscape with javascript?

I simply want to change orientation from portrait to landscape when some pages are loaded. What javascript i should write to do this?

Spend a lot of time already while searching and still can't find anything. I know how to get current orientation, but have no idea how to set.
2 people have
this question
+1
Reply