studogvetmed
10-06-2004, 06:18 PM
Hi all. To try to clean up my layout on one of my pages I decided to try to open a new window when someone clicks on information about me. I use the following.
<a href="index.html#top" onClick="window.open('nickname.htm', 'browser', config='height=700', width='500')">Nickname</a> | <a href="index.html#top" onClick="window.open('life.htm', 'browser', config='height=700', width='500')">Life</a>
So this opens a new window for that at a particular size. In this case 700 x 500 because of how much text is there, but in other cases I could have it open much less. The new page has a whole bar of links as such:
<a href="broadway.htm" onClick="window.open('broadway.htm', 'browser', config='height=500', width='500')">Broadway Aspirations</a> | <a href="travel.htm" onClick="window.open('travel.htm', 'browser', config='height=500', width='500')">World Travel</a>
If someone clicks on the link it loads the new page directly into the window that was opened previously. All the while, the original front page stays at it's top point.
So as it should be, if someone opened the large window first in going to the smaller one, the window should reduce in size, but more importantly, if they start out in a smaller window and click on the link for the bigger window, the window needs to get bigger to prevent having to scroll. At least that is the idea.
I do notice now in the code I just posted I have the '' only around the number in width and around entire phras for height... Could this be part of the problem, or am I going about the idea the wrong way?
You can be taken directly to this part of my page through this URL: http://homepage.mac.com/studogvetmed/homepages/index.html#top
Any comments, suggestions, or better yet, the answer to my problem would be appreciated.
Cheers,
Stuart
<a href="index.html#top" onClick="window.open('nickname.htm', 'browser', config='height=700', width='500')">Nickname</a> | <a href="index.html#top" onClick="window.open('life.htm', 'browser', config='height=700', width='500')">Life</a>
So this opens a new window for that at a particular size. In this case 700 x 500 because of how much text is there, but in other cases I could have it open much less. The new page has a whole bar of links as such:
<a href="broadway.htm" onClick="window.open('broadway.htm', 'browser', config='height=500', width='500')">Broadway Aspirations</a> | <a href="travel.htm" onClick="window.open('travel.htm', 'browser', config='height=500', width='500')">World Travel</a>
If someone clicks on the link it loads the new page directly into the window that was opened previously. All the while, the original front page stays at it's top point.
So as it should be, if someone opened the large window first in going to the smaller one, the window should reduce in size, but more importantly, if they start out in a smaller window and click on the link for the bigger window, the window needs to get bigger to prevent having to scroll. At least that is the idea.
I do notice now in the code I just posted I have the '' only around the number in width and around entire phras for height... Could this be part of the problem, or am I going about the idea the wrong way?
You can be taken directly to this part of my page through this URL: http://homepage.mac.com/studogvetmed/homepages/index.html#top
Any comments, suggestions, or better yet, the answer to my problem would be appreciated.
Cheers,
Stuart