![]() |
|
Controlling more browser windowsUsing 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> |
welcome |
cartoons |
jokes |
daily jokes |
sitemap |
search |
feedback |
what's new Copyright © 1997-2007 Real Comedy Inc.
|