HighDots Forums  

FAQ Topic - How do I modify the current browser window? (2009-11-05)

Javascript JavaScript language (comp.lang.javascript)


Discuss FAQ Topic - How do I modify the current browser window? (2009-11-05) in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
FAQ server
 
Posts: n/a

Default FAQ Topic - How do I modify the current browser window? (2009-11-05) - 11-04-2009 , 07:00 PM






-----------------------------------------------------------------------
FAQ Topic - How do I modify the current browser window?
-----------------------------------------------------------------------

In a default security environment you are very limited in how much
you can modify the current browser window. You can use
` window.resizeTo ` or ` window.moveTo ` to resize or move a
window respectively, but that is it. Normally you can only
suggest chrome changes in a ` window.open `.

http://msdn2.microsoft.com/en-us/library/ms536651.aspx

https://developer.mozilla.org/en/DOM:window.open


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

Reply With Quote
  #2  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Topic - How do I modify the current browser window? (2009-11-05) - 11-06-2009 , 04:31 PM






In comp.lang.javascript message <4af21589$0$279$14726298 (AT) news (DOT) sunsite.dk
Quote:
, Thu, 5 Nov 2009 00:00:03, FAQ server <javascript (AT) dotinternet (DOT) be
posted:
-----------------------------------------------------------------------
FAQ Topic - How do I modify the current browser window?
-----------------------------------------------------------------------

In a default security environment you are very limited in how much
you can modify the current browser window. You can use
` window.resizeTo ` or ` window.moveTo ` to resize or move a
window respectively,
Not always true, AFAIK.

Since I have for a long time had a scripted ReSize button at the top of
my home page, which I put there because it is useful, I cannot imagine
that I have knowingly turned off resizeTo or moveTo (also used) in any
browser.

IE & FF & Safari resize; Opera and Chrome do not.

And, even if I have disabled, or failed to enable, resizeTo and moveTo,
ISTM that authors of pages that I read with Opera or Chrome will be
unable to resize them.

Therefore, the FAQ should not say, without qualification, "You can use
` window.resizeTo ` or ` window.moveTo ` to resize or move a window
respectively, ...".

Change "can" to "may be able to".

=====

The word "canvas" appears, AFAICS, nowhere in the FAQ. It should, even
if only in Section 3.2. If nothing better is offered, it can maybe link
to <http://dev.opera.com/articles/view/html-5-canvas-the-basics/>.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.