Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2004, 07:00 PM   #1 (permalink)
Junior Member
 
Join Date: 01-28-04
Location: United Kingdom
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

DJ-Craig is liked by many
Code To Automatically Close Browser Window

Hi, im looking for a piece of code that would automatically shut a browser window. The situation is this, I am running a winamp shoutcast server on my pc which is not where my website is hosted. My hosting plan does not allow subdomains so I made a redirect page which will redirect from a .html on my domain, directly to the shoutcast stream, so if you type www.dj-craig.co.uk/radio.htm you would be redirected to http://cr41g.no-ip.com:8000/listen.pls (not online 24/7) which is a lot easier than typing the no-ip address into the browser. The only thing is when using the redirect page I am left with an empty browser window when the winamp stream loads. Therefore I am looking for a piece of code which will close the browser window automatically after the redirect has taken place. Any help is appreciated thanks.
DJ-Craig is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-15-2004, 08:13 PM   #2 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
This will wait for 1 second then issue the close window command.

Each person's browser will decide whether to ignore the command, follow it, or ask the user if they wan't it to be follwoed.

<script>
window.setTimeout("window.close()", 1000);
</script>
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to empty cache automatically? fireheart007 Web Design Lobby 4 02-04-2008 02:43 PM
So close...can you help? jjgilz SEO Forum 7 11-14-2007 09:25 PM
how to populate parent window from child window usin coldfusion daraptor Coding Forum 0 01-28-2007 09:53 PM
How to make BckGrn image resize to browser window? seonewbee Web Design Lobby 4 07-19-2005 10:47 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:46 AM.
© Copyright 2008 V7 Inc