Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limiting the size of a web page 1

Status
Not open for further replies.

logopolis

Technical User
Oct 10, 2002
59
ES
I am designing a website using Adobe GoLive 5. I have set up some of my hyperlinks on the pages to open in a new window while leaving the original window open. I want to be able to specify what size this window opens and also to remove all the shortcut and address information at the top of these windows, so it just opens with the title bar. Can anyone help?

John
 
Javascript.

Code:
<script language="javascript">
function popWindow(url,winName){
    window.open(url,winName,'width=600,height=600,buttonbar=false,addressbar=false
);
}

Your hyperlink would be <a href="#" onclick="popWindow('theURL.htm','PopUp');">Link Name</a>

Fair warning. Some pop-up blockers will block this script and they will definitly block it if you try to fire the function as a body onload function.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top