Archived entries for Javascript

[Inspiration] Chrome Experiment

chrome

Ar this rate, Google is really going to take over the world. via Creativity Online.

[Javascript] Resizing Browser

This is one interesting trick I found which lurking on the web space, something which may annoy one or two of your web visitors by surprising them on things they do not want to happen : Resizing and moving their browser window around.

This usually happens when a mini-site, be it a movie or a promotional site will happen to launch in a new window, it will position itself in a fullscreen environment and cover your screen entirely. How do they do it? I’ve written a small file for you to know about how it works, not abuse it.

What makes this work?
Try copy and paste this line onto the place where you type in your URL inside your browser.

javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight)

See?

How to use it?
Just download the file and use it anywhere on your site. The download compromise of 2 file, resize.html and resize.js. Inside the javascript (.js) file is the line above. To use it is pretty simple, just copy this line and put in between of your site’s <head></head>.

<script type=”text/javascript” language=”javascript” src=”resize.js”></script>

Download
You can download the source file and try it on your computer.
[ Auto-Resize & Fullscreen Browser ]

Most importantly, enjoy!



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.