FAQ Topic - How do I modify the current browser window? (2010-08-29)

  • Follow


-----------------------------------------------------------------------
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`.

<URL: http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx>
<URL: 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.

0
Reply javascript4 (1179) 8/28/2010 11:00:03 PM

In comp.lang.javascript message <4c7994fb$0$50444$14726298@news.sunsite.
dk>, Sat, 28 Aug 2010 23:00:03, FAQ server <javascript@dotinternet.be>
posted:

>
>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 necessarily.  In my Opera 10.61 Build 3484 and in my Chrome
5.0.375.127, neither of those methods works.  I'm fairly sure I've not
turned them off; presumably they are off by default.

Therefore, the FAQ should probably say something about detecting whether
they have worked.

-- 
 (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk  Turnpike v6.05  IE 7.
 Web  <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
0
Reply Dr 8/30/2010 9:04:54 PM


1 Replies
134 Views

(page loaded in 0.036 seconds)

Similiar Articles:













7/21/2012 12:24:25 AM


Reply: