HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Restricting the size of a browser window
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
kmarcoux76



Joined: 13 Dec 2004
Posts: 4

PostPosted: Fri Jan 07, 2005 1:46 pm     Restricting the size of a browser window Reply with quote

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.
Embarassed
velocity



Joined: 13 Jan 2005
Posts: 6

PostPosted: Thu Jan 13, 2005 11:47 am     Re: Restricting the size of a browser window Reply with quote

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.
Embarassed


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>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial