Area.port

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+ Syntax

document.links[num].port

Description

The port property contains just the port specified in the URL. This property is a read/write string.

Example

In Listing 7.17, a Plant Supply Company page is created. The user is instructed to select the port number he or she wants to use when he or she clicks the company logo. The port number used by the area is modified based on the user's port selection.

Listing 7.17 Modifying the port Property of an Area Object
 <html> <body> <center><h1><u>Plant Supply Company</u></h1></center> <h3>Step 1: Choose a port number.</h3> <form name="port"> <input name="portType" type="radio" checked onClick="updateLinks('8080')">Port 8080<br> <input name="portType" ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.