[thelist] js and redirection

Le Sauvage sauvage at ureach.com
Tue Nov 12 22:15:01 CST 2002


hey, mike :-) many thanks for responding -- and doing so quickly.

please rest assured that i don't do porn. it's for my own page, actually.

i'll test your codes and revert to you.

once again, many thanks.

cheers!




________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


---- On Wed, 13 Nov 2002, Michael Mell (mike at nthwave.net) wrote:

> On Wednesday, November 13, 2002, at 10:41  AM, Le Sauvage wrote:
>
> > i have a page (not the first page) open in fullscreen. on the page
> > there is a
> > button, say, CLOSE. what i want to achieve is to [1] have the window
> > closes to
> > normal size and then [2] get re-directed to another page by using the
> > lines "JavaScript:window.close(self)" and "parent.location='about:home"
>
> this isn't for one of those insane porn site endless window openers is
> it?
>
> If you can skip the close part, your fullscreen page should have this
> link:
> <a href="javascript: shrinkAndLoad('nextPage.html', 420,
> 520)">CLOSE</a>
>
> If you must close the parent
> <a href="javascript: newWin('nextPage.html', 420, 520)">CLOSE</a>
>
> put this is script in the head tag:
> <script type="text/javascript">
> function newWin(theURL, w, h, winName) {
> 	settings='width='+w+',height='+h+';
> 	win=window.open(theURL,winName,settings);
> 	self.close();
> }
> function shrinkAndLoad(url, w, h) {
> 	document.location.href = url;
> 	window.resizeTo(w, h); //for IE
> 	window.innerWidth = w; // for NS
> 	window.innerHeight = h;
> }
> </script>
>
>
> untested: I pulled the code from working files.
>
> m
>
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
>




More information about the thelist mailing list