Action, protest, campaigns, demos and issues magazine features, photos, articles, stories photos of London, New York, Wales, England and photography features music, parties, clubs, events, records, releases drug information, harm reduction, no-nonsense guide punch a celebrity football, features, issues, cardiff city games, useless games and diversions technical info, web authoring, reviews and features site news, updates and urban75 blog urban75 community news and events urban75 bulletin boards join the chatroom search urban75 back to urban75 homepage
London features, photos, history, articles New York features, photos, history, articles Brixton features, photos, history, articles panoramas, 360 degree vistas, London, New York, Wales, England Offline London club night festival reports, photos, features and articles urban75 sitemap and page listing about us, info, FAQs, copyright join our mailing list for updates and news contact urban75
web question and answers



« Q & A page

« tech pages


Q: How do I open my site in a pop up window?
by Mike Slocombe

Q: We've created a home page with an intro option to enter or get a Flash plug-in.

We want the enter button to open the site in its own window. I can connect the button to an outside Web address, but can't open the movie in any window other than that of the original home page. Can you help?
Matt

A: I'd advise extreme caution before foisting an automatic, browser-spawning script on your home page.

Apart from the fact they're deeply irritating, some users will assume it's just another pesky advert and swat it shut on sight. But if you really want to, here's how...

<html>
<head>
<title>Pop up code</title>
<script language="JavaScript">
<!--
function popup_window(url,name)
{
popupWin = window.open('http://www.urban75.com','yoursite','menubar,resizable,dependent, status,width=300,height=200,left=10,top=10')
}
// -->
</script>
</head>
<body onload= "popup_window()">
The new window will appear when this page loads
</body>
</html>

I'd recommend increasing your site's accessibility and search-engine 'friendliness' by providing a HTML version of the site as well as the Flash one.

More info, check out: Pop-up code generator

January 2003







urban75 - community - action - mag - photos - tech - music - drugs - punch - football - offline club - brixton - london - new york - useless - boards - help/FAQs - © - design - contact - sitemap - search