Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[HTML] document domain µÄ˵Ã÷

ÏÈÀ´¿´¶Î´úÂ룺
document.domain = 'ray.com';
Õâ¶Î´úÂëµ½µ×ÊÇʲôÒâË¼ÄØ£¿
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´ÏÂHTML DOM ¹ØÓÚÕâ¸öµÄ˵Ã÷£º
domain of type DOMString, readonlyThe domain name of the server that served the document, or null if the server cannot be identified by a domain name.
 Õâ¶Î»°µÄÒâ˼ÊÇÕâ¸öÖµÊÇDOMString ÀàÐ͵IJ¢ÇÒÊÇÖ»¶ÁµÄ£¬Èç¹ûÕÒ²»µ½ÓòÃûµÄ»°Õâ¸öֵΪnull£¬·ñÔò£¬Õâ¸öÖµ¾ÍÊÇÕâ¸öÌṩÕâ¸öÎĵµµÄÓòÃû¡£
ÔÙÀ´¿´ÏÂfirefox ¹ØÓÚÕâ¸öÖµµÄ˵Ã÷£º
In the DOM HTML specification, this property is listed as being read-only. However, all common browsers including Mozilla will let you set it to a superdomain of the current value. For example, on developer.mozilla.org it is possible to set it to "mozilla.org" but not "mozilla.com".
It is not universally possible in all browsers to set document.domain to a top-level domain (such as "com" or "org") or to a subdomain of a domain on which registrations are restricted (e.g. "co.uk", as registrations on the "uk" domain are restricted).
    Õâ¶Î»°µÄ´óÖÂÒâ˼ÊÇËäÈ»DOM ±ê×¼¹æ¶¨document.domain Õâ¸öÖµÊÇÖ»¶ÁµÄ£¬µ«ÊÇÐí¶àä¯ÀÀÆ÷°üÀ¨»ðºüÔÊÐíËüÉèÖÃΪµ±Ç°ÓòÃûµÄ¸¸ÓòÃû¡£±ÈÈç‘developer.mozila.org’ ¿ÉÒÔÉèÖÃΪ‘mozila.org’µÄÓòÃû£¬µ«ÊDz»ÄÜÉèÖÃΪ‘mozila.com’µÄÓòÃû¡£²»Í¬ä¯ÀÀÆ÷¶ÔÕâ¸öÖµµÄÉèÖÃÖ§³Ö²»Ò»Ö¡£
 ¸ù¾ÝÎÒµÄʵÑ飬ÉèÖÃÁËÕâ¸ödomainÖµºó£¬ËùÓзÇдÔÚ±êǩʼþÖеÄJS¶¼ÎÞ·¨Ö´ÐÐ. 


Ïà¹ØÎĵµ£º

.net + html ͬÒâ×¢²á

.net ¹¦ÄÜÊ®·ÖÇ¿´ó£¬Æäʵ¿ÉÒÔÖ±½ÓÔÚÀïÃæÐ´Ò»Ð©htmlµÄ´úÂ룬±ÈÈçÏñÕâÑù
<asp:CheckBox ID="checksingup" runat="server" Text='I have read and agree to <a href="abc.aspx">This is ABC web</a>'   onclick="ValidateTandCs" />
ÕâÖÖ¿ÉÒÔÓÃÓÚ×¢²áʱµÄ³¬Á´½Óµ½±ðµÄµØ·½£¬µ±È»¿ÉÒÔ·¢»ÓÏëÏñ£¬Ë ......

ÔÚhtmlÖÐincludeÒ»¸öÎļþÄÚÈݵļ¸ÖÖ·½·¨

ÔÚhtmlÎļþÒýÈëÆäËühtmlÎļþµÄ¼¸ÖÖ·½·¨
¼ò½é£ºÔÚÂÛ̳Öг£³£ÓÐÍøÓÑÎʵ½£¬¿ÉÒÔÔÚÒ»¸öhtmlµÄÎļþµ±ÖжÁÈ¡ÁíÒ»¸öhtmlÎļþµÄÄÚÈÝÂ𣿴ð°¸ÊÇÈ·¶¨µÄ£¬¶øÇÒ·½·¨²»Ö»Ò»ÖÖ£¬ÔÚÒÔǰÎÒÖ»»áʹÓÃiframeÀ´ÒýÓ㬺óÀ´·¢ÏÖÁËÁíÍâµÄ¼¸ÖÖ·½·¨£¬ÄǽñÌì¾Í×ܽáÕ⼸ÖÖ·½·¨Èôó¼Ò²Î¿¼Ò»Ï£¬±¾È˾õµÃµÚÈýÖÖ·½Ê½½ÏºÃ£¡
1.IFrameÒýÈ룬¿´¿´ÏÂÃæµÄ´ú ......

struts html:link±êÇ©µÄÓ÷¨

struts html:link±êÇ©µÄÓ÷¨£¨×ª£©
¹ØÓÚ<html:link>±êÇ©ÔÚURIºóÃæ´«²ÎÊýµÄÎÊÌâ
ÔÚstruts±êÇ©<html:link>µÄpageÊôÐÔÖ¸¶¨µÄURIºóÃæ´«µÝ²ÎÊý¿ÉÒÔÓм¸ÖÖ·½Ê½£º
1.ÈôÃ÷È·²ÎÊýÃûºÍ²ÎÊýÖµÔòÖ±½ÓÔÚURIºóÊä³ö£¬
È磺<html:link page="/test.do?action=add">add</html:link>
2.¶ÔÓÚ²ÎÊýÖµ²»È·¶¨µÄ£¬p ......

html³õ²½Ñ§Ï°±Ê¼Ç

html ÍøÒ³ÃèÊöÓïÑÔ
htmlµÄ»ù±¾¿ò¼Ü
<head>                                      //±êǩͷ
<javacript>                         &nb ......

html總結£¨ÖУ©

ÓÐ關html´°體¿ò¼ÜµÄ問題£¬Èç¹ûÏëÒª實現ÔÚÒ»個畫ÃæÖзָ體£¬並ÇÒͨ過點擊ÆäÖеÄÒ»個´°體£¬鏈½Ó內ÈÝÖÁͬһ個畫ÃæÖеÄÁíÒ»個´°體¡£¾ÍÐèҪʹÓÃ<frameset>與<frame>µÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ