PDA

View Full Version : تفاوت parent , top , self در HyperLink



aliblue
دوشنبه 10 مهر 1391, 13:47 عصر
در target هایپرلینک ، parent , top , self چه تفاوت هایی دارند؟و کاربرد هر کدام در کجاست؟من امتحان کردم همشون توی همون صفحه ای که قرار دارن صفحه جدید رو باز می کنن.

hamed_hossani
دوشنبه 10 مهر 1391, 21:37 عصر
Using the HTML Anchor elements target="_blank" attribute

The target="_blank" attribute causes the "target" of the hyperlink to open in a new, usually smaller, window.

Using the HTML Anchor elements target="_top" attribute

The target="_top" attribute causes the "target" of the hyperlink to display at the top level of all currently defined
framesets.
For instance, Say you have 2 framesets defining a page. One called header.html defining the page header and
a second named content.html that defines the rest of the page. If you create a hyperlink in the content area that
uses target="_top", once clicked, it makes it self the top level frame replacing the header.html and content.html
frameset structures. In short..fills the entire page!

If you are using CSS instead of frames, most browsers will also display this as a full page, replacing the current content.

Using the HTML Anchor elements target="_parent" attribute

The target="_parent" attribute causes the "target" of the hyperlink to display in the entire area of the current frameset.
For instance using the above conventions and structures, say the content.html frame contains a frameset of 3 files such
as; leftpane.html, maincontent.html, and rightpane.html.

If you create a hyperlink in the maincontent.html frame area that uses the target="_parent", once clicked, instead of
displaying just in the current maincontent.html frame area, it displays in the entire content.html frameset area. That is,
it takes up the area of leftpane.html, maincontent.html, and rightpane.html.

If you are not familiar with frames then this is probably as clear as mud. See the related links section for a link to W3C's
comprehensive article on frames.

If you are using CSS instead of frames, most browsers will just display this as a full page, replacing the current content.

Using the HTML Anchor elements target="_self" attribute

The target="_self" attribute causes the "target" of the hyperlink to open in the current frame. This is the behavior
that is used if the target attribute was not used at all.

If you are using CSS instead of frames, most browsers will just display this as a full page, replacing the current content.

Using the HTML Anchor elements target="The name of a frame" attribute

The value of the target attribute can also be the name of a frame or window. For example, using the above example
where we have a leftpane, maincontent, and rightpane.html frames and the maincontent.html is defined with a name
of mainwindow. Say we put a link in the leftpane frame and use target="mainwindow", then once clicked, instead of
displaying in the current leftpane.html frame area it displays in the maincontent.html frame area.
منبع (http://www.aitechsolutions.net/htmlhowAtargetattrib.html)

fakhravari
دوشنبه 10 مهر 1391, 22:40 عصر
سلام
hamed_hossani (http://barnamenevis.org/member.php?133368-hamed_hossani) دیدمت توی اهواز فکر نمیکنم زبانت اینقدر خوب باشه که فکر کرده بودی دوستان همه زبان دانن.
کل سوال این دوستمون میشه همون نوع کلیک روی یک هایپر لینک یا هر تگی که به صورت لینک است.
حالا که اینطوری شده اینم برای ترجمه
http://translate.google.com