JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 26th, 2004, 08:58 AM
crazycondor crazycondor is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 23 crazycondor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 50 sec
Reputation Power: 0
Change window's attributes Onload?

Hello Everybody,
My question is the following. Can i Use the OnLoad function to open the main window without tollbar, menubar etc. I want to do
this without clicking on a link or button. Is it possible for the main page? I've tried the following:

<script language="JavaScript">
window.open ('', '', 'width=200,height=200,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no')
oldwindow = window.self;
oldwindow.opener = window.self
oldwindow.close();
</script>

but the problem is that the first window is visible until it closes. Is it possible to hide it someway?


Also, is it possible to create a page with a link that opens such a window (without tollbar, menubar etc) and create a shortcut for
that link in order to achieve the aforementioned?

that link and open tha window in order to achieve

Reply With Quote
  #2  
Old April 27th, 2004, 01:02 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
In a nutshell, you cannot alter the appearance of a windows chrome (menus, etc) that you didn't not create. To see exactly what you can change in a new window, refer to the Javascript Manual (google it).

Also, you cannot close a parent window without a user prompt.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Change window's attributes Onload?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT