Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 5:14 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Resize popup window after 5 seconds
PostPosted: January 4th, 2010, 4:58 pm 

Posts: 39
I'm making a website with this popup that I want to resize, but I need to resize it after it was opened. I have this for when the popup was opened but I want to resize it to a bigger size after 10 secs, do you think I can do it?

http://www.scriptingok.com/forum/t12_71-Open-a-new-window-with-no-scrollbars this is what i got to create the window...


Top
 Profile  
 
  Re: Resize popup window after 5 seconds
PostPosted: January 4th, 2010, 5:18 pm 

Posts: 16
Yes!
<script type="text/javascript">
var time;
var i=5; //number of secs to resize the window
j=1000;
function makeWindow(){
mwin=window.open('http://www.scriptingok.com','_blank','width=400,height=400');
verW();
}
function verW(){
    time=setTimeout("verW()",1000);
    i=i-1;
    if(i==0){clearTimeout(time);mwin.resizeTo(200,200);}
}
//window.resizeTo(200,200);
</script>
<input type="button" value="create popup"
onclick="makeWindow();" />


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron