Opens a new window with new URL and name, depending on what a user clicks.
This goes inside the <head></head> or between the </head> and <body> tags
Then, to use it, just do this:Code:<script language="JavaScript"> function OpenWin( url, name) { window.open(url, name); } </script>
within the <body></body> of your HTML file.Code:[img]image1.jpg[/img] [img]image2.jpg[/img]
Remember that a new window takes at least 2 arguments, URL, and Name. It can also take a third string of parameters for size, whether to display toolbars or not etc.




Reply With Quote