Welcome to Jokes2000. Tips for improving your website: Graphic, HTML and javascript A fine collection of cartoons Jokes jokes jokes - get a good laugh Joke of the day and mailing list Table of contents
Jokes2000.com Jokes2000.com
 

Controlling more browser windows 

Using javascript, you can open new documents in separate windows. See it in action.

The function OpenWindow() below opens a new window. You must specify an url to open and a name for the new window. You can use the name in your links by specifying target="name".

<script language=javascript type="text/javascript">
<!--
function OpenWindow(url, name)
{ popupWin = window.open(url, name, 'width=300,height=130')
}
// -->
</script>

<a href="javascript:OpenWindow('MyUrl', 'MyName')">MyLink</a>

OpenWindow() opens a new window with no menu, toolbar, statusline and so on. You can modify the string 'width=300,height=130' with these commands: toolbar location directories status menubar scrollbars resizable copyhistory. in order to get the items you want. You must specify the new string with the commands separated by commas like this: 'toolbar,menubar,resizeable,width=300,height=130'

You can close windows opened by javascript with the function close(). You could put the following link in the new window:

<a href="javascript:close()">Close</a>


Affiliate Sites: Funny Videos | Fight Videos | Free Arcade Games


welcome | cartoons | jokes | daily jokes | sitemap | search | feedback | what's new

Copyright © 1997-2007 Real Comedy Inc.