navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Javascript

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Javascript
Page: [1]
 
Oznob

 

Posts: 87
From: Toronto, Ontario, Canada
Status: offline

 
Javascript - 3/22/2001 15:24:00   
How should the following appear if I want to set the window size to 100% width and height?
-----------------------
<head>
<script LANGUAGE="JavaScript">
function ShowWindow()
{
window.open('http://www.mydomain.com/', '', 'scrollbars=yes,toolbar=no,directories=no,menubar=no,status=no,menubar=no,height=480,width=640');
}
</script>
</head>
------------------------
I tried width=100% and it doesnt work - anyone know the correct syntax?
p.s. I dont want fullscreen=yes -- that seems to remove all the menus etc.

Thanks in Advance,
Oznob

Dixiedi

 

Posts: 130
From: Cincinnati
Status: offline

 
RE: Javascript - 3/22/2001 16:25:00   
It has to be set to pixel size. If you want full window sizing, go with 800width and600 height, that will accomodate most visitors.

I might be totally wrong on this, so excuse me if I am, but if you are looking to make some type of advertising pop up that covers the entire monitor screen, think twice before you do it. People absolutely hate that. AND statistics tell us it takes at least 4 ro 6 visits before someone will make a purchace from your site. Ticking them off on the first visit makes it really hard to get to that 4th one, let alone the 6th.
I know a lot of sites use this method, but they are not appreciated. Do you want to be one of them?


(in reply to Oznob)
markniebergall

 

Posts: 1
From: None
Status: offline

 
RE: Javascript - 3/22/2001 17:20:00   
The following javascript came from a tutorial offered on one of the javascript websites. I have used it successfully.

It needs to be added to the head of the new document(window) however, not the opener.

<script language="javascript">
function maximizeWin() {
if (window.screen) {
var aw = screen.availWidth;
var ah = screen.availHeight;
window.moveTo(0, 0);
window.resizeTo(aw, ah);
}
}
</script>


(in reply to Oznob)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Javascript
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts