Hello I am using javascript file to format my html string in swift. This is my.js file
`
var title = document.body
title.style.color = 'white'
title.style.display = 'block'
var iframe = document.body.getElementsByTagName('iframe')[0]
iframe.style.width = '320'
iframe.height = '200'
`
for this iframe.style.width = '320'
I want to give the screen width. How can I access screen width in my .js
file?
Please help me.
Thanks