 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
kmarcoux76
Joined: 13 Dec 2004 Posts: 4
|
Posted: Fri Jan 07, 2005 1:46 pm Restricting the size of a browser window |
|
|
|
I have a page designed that has 5 links to 5 different pages that i want to open in a separate window. I want the window to be a locked size. I have code that works, but i can only make it work for one link. It automatically overwrites all of the other links. Is there a way to use this code for multiple links on a single page?
the code i am using is:
<a href="page.htm" onClick="popup = window.open('page.htm', 'PopupPage', 'height=650,width=700,scrollbars=yes,resizeable=no'); return false" target="_blank">
I am replacing the "page.htm" with my page name, ex: financing.htm
Please help. I went to school for web design about 7 years ago and i don't remember how to do a few things.
 |
|
velocity
Joined: 13 Jan 2005 Posts: 6
|
Posted: Thu Jan 13, 2005 11:47 am Re: Restricting the size of a browser window |
|
|
|
| kmarcoux76 wrote: |
I have a page designed that has 5 links to 5 different pages that i want to open in a separate window. I want the window to be a locked size. I have code that works, but i can only make it work for one link. It automatically overwrites all of the other links. Is there a way to use this code for multiple links on a single page?
the code i am using is:
<a href="page.htm" onClick="popup = window.open('page.htm', 'PopupPage', 'height=650,width=700,scrollbars=yes,resizeable=no'); return false" target="_blank">
I am replacing the "page.htm" with my page name, ex: financing.htm
Please help. I went to school for web design about 7 years ago and i don't remember how to do a few things.
 |
I use javascript for this, here is an example:
| Code: |
<script language='Javascript'>
var exit=true;
function exit()
{
if (exit)
open('HTTP://www.mydomain.net/myfolder/mypopup.html');
}
</script>
<script language='Javascript'>
<!--
if(navigator.appVersion.indexOf('AOL')==-1)
if(navigator.appVersion.indexOf('AOL 3.0')==-1)
if(navigator.appVersion.indexOf('AOL 4.0')==-1)
if(navigator.appVersion.indexOf('AOL 5.0')==-1)
if(navigator.appVersion.indexOf('AOL 6.0')==-1)
if(navigator.appVersion.indexOf('AOL 7.0')==-1)
if(navigator.appName.indexOf('WebTV')==-1) {
myWin = open('', 'winin','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=400,height=350');
myWin.blur();
myWin.location = 'mypopup.html';
var shut=true;
function exitcon() {
if (shut) {
exWin = open('', 'winexit','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=400,height=400');
exWin.blur();
exWin.location = 'mypopup.html';
}
}
}
//-->
</script> |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|