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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Href Question - Setting Height And Width 1

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I have the following code that creates a link to another web page -

<a href="UploadFiles.asp" target="_blank"><font face="Tahoma" size="2">Upload File</a></font>

Is there a way to add the height and width of the new web page when it opens? Or do i have to set the height and width variables in the web page that opens instead of the web page that calls it?
 
You have to use javascript to set the height & width of the new window:

Code:
function UploadFiles(){ 
	var winFeature = "height=400,width=700";
	var URL = "UploadFiles.asp";
	window.open(URL,"FileUpload",winFeature);
}

<a href="#" target="_blank" onClick="UploadFiles()"><font face="Tahoma" size="2">Upload File</a></font>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top