NameSilo

Custom Website Window

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Watch
Hey guys,

I have been developing a few websites and all of them call for custom window sizes (aka. popup windows) for aspects of the website. How do I size a window to a custom size for all viewers of the page??

THANKS
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
You can use Javascript to set specific pop-up window sizes:

Code:
<a href="#" onClick="window.open ('webpage.html','newwin','width=550,height=480,left=30,top=30,screenX=30,screenY=30');">YOUR LINK</a>

  • "newwin" can be called anything and acts as reference for Javascript, in order for it to keep track of which window your pop-up loads to.
  • width/height sets the width and height of your pop-up window, obviously.
  • left/top & screenX/screenY are pixel values that correspond to the user's monitor. This is where you can decide where the window is placed. There are 2 variations for browser compatibility reasons.

Hope this helps!
 
0
•••
thanks!
 
0
•••
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back