PDA

Visualizza versione completa : Html?


Ov3rKuNtZ
29-12-2001, 17.49.40
Ciao aTutti!

volevo chiedere come si può far in modo ke ogni link di una pagina si apra in un'altra finestra?????:confused:

Sharok
29-12-2001, 18.30.08
Penso che basti settare il target del link come _blank se ho capito bene la tua richiesta :)

Sergio Neddi
29-12-2001, 22.47.32
Qui sotto ho fatto il copia/incolla da un vecchio help trovato non so dove:

<BASE HREF=url TARGET=window>

Specifies the document's URL.

HREF=url

Specifies the document's full URL in case the document gets read out of context and the reader wants to refer to the original.

TARGET=window

Specifies to load all the links on the page into the targeted window. This can be overridden by specifying a different target attribute for a specific link. The window can be one of these values:

window Specifies to load the link into the targeted window. The window must begin with an alphanumeric character to be valid, except for the following four target windows:
_blank Load the link into a new blank window. This window is not named.
_parent Load the link into the immediate parent of the document the link is in.
_self Load the link into the same window the link was clicked in.
_top Load the link into the full body of the window.

Examples

<BASE HREF="http:// www.sample.com/hello.htm">

<BASE HREF="http:// www.sample.com/hello.htm" TARGET="viewer">


Può essere utile?

Ov3rKuNtZ
30-12-2001, 01.46.25
io intendevo un comando che posso dare a inizio documento che valga per tutti i link presenti nella pagina senza bisogno di editare il codice!

esempio se io ho una finestrella ke siapre con dei banner pubblicitari e questa non è ridimensionabile! e il tizio ke fornisce i banner non vuole a toccargli il codice! come faccio afar si ke tutti quei banner aprano fuori dalla finestra! (anke perke aprendosi dentro sarebbe la finestra stessa troppo piccola!

ho fatto un pò di caos?

:confused: :confused: :confused:

Sergio Neddi
30-12-2001, 23.01.18
Appunto, il tag BASE serve allo scopo.

Ad esempio:

<BASE TARGET="display">

aprirà nel frame "display"

<BASE TARGET="_blank">

aprirà in nuova finestra, e quest'impostazione si ripercuoterà su tutti i link presenti nella pagina, se non viene specificato localmente nel singolo link un nuovo target.

Ov3rKuNtZ
31-12-2001, 01.04.14
Capito! mOoolte grazie!!!!!!!!!!!!!!!!!!!!!!!!:) (D)