ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM hash ÊôÐÔ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM hash ÊôÐÔ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:1631 :: ::

Definition and Usage
¶¨ÒåÓëÓ÷¨

The hash property sets or returns the part of the href property that follows the hash sign (#).
hashÊôÐÔ¿ÉÉèÖûò·µ»ØhrefÊôÐÔÖнÓÔÚ#·ûºÅºóÃæµÄÄÚÈÝ

Syntax Óï·¨

location.hash


ÑÝÁ·

Anchors array - This example opens two windows. The first window contains four buttons and the second window defines four anchors from 0 to 3. When a button is clicked in the first window, the onclick event handler goes to the specified anchor in the second window.
Õâ¸ö¾ÙÀý½«´ò¿ªÁ½¸ö´°¿Ú¡£µÚÒ»¸ö´°¿Ú°üº¬Ëĸö°´Å¥£¬µÚ¶þ¸ö¶¨ÒåÁËËĸöê¼Ç£¬·Ö±ð×Ô0µ½3¡£µ±°´Å¥°´ÏµÄʱºò£¬onclickʱ¼ä»á×÷´¦Àí£¬²¢½«µÚ¶þ¸ö´°¿ÚµÄÏÔʾλÖÃÒÆ¶¯µ½Ö¸¶¨µÄλÖÃÉÏ¡£

ÆÀÂÛ (1) 1 All