SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-22-2004, 01:33 AM
Klets Klets is offline
SEO Junior
 
Join Date: Nov 2004
Posts: 3 Klets is on a distinguished road
Window object parameters

Hi There,

I would like to open a window with a specified width and height. I know how to control a second window from the first on, but that is not what I mean.

What would like to have is that the first or current window changes in width and height. Is that possible? How?

Thanks
Klets.
Reply With Quote
  #2  
Old 11-23-2004, 08:20 AM
hunter hunter is offline
SEO Junior and a half
 
Join Date: Nov 2004
Location: USA
Posts: 38 hunter is on a distinguished road
Send a message via Yahoo to hunter
Please give me more explanation.

Do you want to resize the current window by clicking a link or button or something else that triggers an event?
Reply With Quote
  #3  
Old 11-23-2004, 03:33 PM
Klets Klets is offline
SEO Junior
 
Join Date: Nov 2004
Posts: 3 Klets is on a distinguished road
Thanks for responding Hunter,

I want the window to open in a specified size. If anyone is opening that HTML page, the window will automatiicaly adjust to the specified width and height. That is without any action from the user.

Is that possible?

Thanks,
Klets
Reply With Quote
  #4  
Old 11-24-2004, 02:50 AM
hunter hunter is offline
SEO Junior and a half
 
Join Date: Nov 2004
Location: USA
Posts: 38 hunter is on a distinguished road
Send a message via Yahoo to hunter
Everything is possible Dude!

There is a methos for winodw object called resizeTo(iWidth,iHeight) which sets the size of the window to the specified width and length. Check the following simple script:

<HTML>
<HEAD>
<Script language="javascript">
function resizeWin(){
window.resizeTo(width,Height);

}
</script>
</HEAD>
<BODY onload="resizeWin(300,300)">
</Body>
</HTML>


When the page loads onload event is triggered and calls the resizeWin function defined in the Head section and it resizes the current window.

you can also use other events such as onClick, onMouseOver, ... for different purposes
Reply With Quote
  #5  
Old 11-25-2004, 05:02 AM
Klets Klets is offline
SEO Junior
 
Join Date: Nov 2004
Posts: 3 Klets is on a distinguished road
Thanks man,

Exactly what I needed!

Cheers,

Klets
Reply With Quote
  #6  
Old 11-25-2004, 12:14 PM
hunter hunter is offline
SEO Junior and a half
 
Join Date: Nov 2004
Location: USA
Posts: 38 hunter is on a distinguished road
Send a message via Yahoo to hunter
Nice to hear that.

Have fun!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 10:04 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.