PDA

View Full Version : Channel Mode Window Opener Script



melyrap
11-05-2005, 05:13 PM
Channel Mode Window Opener Script
http://www.dynamicdrive.com/dynamicindex8/window2.htm

Hello all!
I was just wondering if anyone knew a way to make a link open automatically to a channel mode window. The script above is for a button that when clicked opens up to a channel mode window, however I was hoping to do this automatically when a link is clicked. I noticed that there is a script for auto-maximize the window...though it's not the same as channel mode.

Any help will greatly be appreciated...
Thanks.

jscheuer1
11-05-2005, 06:25 PM
<script type="text/javascript">

/*
Channel Mode Window Opener Script-
Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function channel(url){
window.open(url,"","channelmode,scrollbars")
}
</script>
<a href="index.html" onclick="channel(this.href);return false;">Open window</a>

melyrap
11-07-2005, 04:38 PM
Thank You...and just another quick question:

is there a way to put in the script on to the page itself so that it opens up in channel mode automatically without it mattering whether or not the link is set to open the page in channel mode? So that when anyone wants to go to the page by inputting the complete address instead of hitting a link, the page will come up in channel mode.

Once again,
Thank you so much for all your help...

jscheuer1
11-07-2005, 05:19 PM
There was a time but, with increased security in modern browsers, that no longer can be done.