Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1034 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Window.innerwidth problem

Thread title: Window.innerwidth problem
Reply    
    Thread tools Search this thread Display Modes  
09-18-2012, 02:48 PM
#1
BoyWonder is offline BoyWonder
Status: Member
Join date: Mar 2012
Location: Brooklyn, United States
Expertise: Programming
Software: Notepad++
 
Posts: 102
iTrader: 0 / 0%
 

BoyWonder is on a distinguished road

  Old  Window.innerwidth problem

When i resize the window, the window.innerwidth doesn't update. I dont want to use jQuery.

var page = window.innerWidth;
var content = document.getElementById("content");
content.style.width=page-300 + "px";

i tried:
window.addEvent("resize", function() {
console.log(window.getCoordinates().width);
});
with no avail​

Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed