[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¶¼ÎÞ·¨Ö´ÐÐ.
Ïà¹ØÎĵµ£º
Ê×ÏÈÔÚÓ¦ÓóÌÐòµÄWEB.CONFIGÐÞ¸ÄÈçϽڵ㡣
<httpHandlers>
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
<assemblies>
<buildProviders>
<add ext ......
δÀ´µÄ Web ÕýÔÚ¼ÓËÙµ½À´£¬HTML5 ÒѾÍê³ÉϸÔòµÄÖÆ¶¨²¢ÐîÊÆ´ý·¢£¬¾¡¹ÜËüµÄʵÏÖÈÔ´ýʱÈÕ
£¬Ò»Ð©ÓÐǰհÑÛ¹âµÄä¯ÀÀÆ÷ÒѾ¿ªÊ¼Ö§³Ö HTML5 µÄ²¿·Ö¹¦ÄÜ
¡£HTML5 ÊÇ10ÄêÀ´ Web ±ê×¼µÄ×î´ó¸Ä½ø£¬È»¶ø HTML5 Ö®ºóÊÇʲô£¿ÊÇ HTML6 Âð£¿
²»ÊÇ¡£ WHAT ¹¤×÷×é (WHAT Working Group)
ÕýÁªºÏ W3C
ÖÆ¶¨ HTML5 µÄºóÐø°æ±¾µÄϸÔò£¬Ëûà ......
HTMLµÄ»ù±¾½á¹¹
<HTML> ---------------------------------------- ¿ªÊ¼±êÇ©
<HEAD> --------------------------------------
<TITLE> Ò»¸ö¼òµ¥µÄHTMLʾÀý </TITLE> &nbs ......
´ÓÍøÉϵÄSThtmlDialogÀý×ӸĹýÀ´µÄ£¬ÔÚMFC³ÌÐòÖÐÏÔʾHTMLÍøÒ³µÄ·½·¨
1¡¢ÔÚÊÓͼÀàÖÐÌí¼ÓÍ·Îļþ#include <Htmlctrl.h>
2¡¢ÔÚÊÓͼͷÎļþÖÐÌí¼Ó±äÁ¿
HWND m_hwndHtml;//HTML¿Ø¼þ´°¿Ú¾ä±ú
HINSTANCE m_HtmlViewInstance;//¶¯Ì¬Á´½Ó¿â×°ÔØ¾ä±ú
²¢¸³Óè³õʼֵm_HtmlViewInstance = 0;
3¡¢´´½¨ÍøÒ³¿Ø¼þ, ......
ÏÂÃæÊÇÒ»¸ö¹ýÂËhtmlÔªËØµÄ³ÌÐò£¬Ò²Ðí¶Ô´ó¼ÒÓеã°ïÖú£¡
/**
* filter all html element.
* For example:<a href="www.sohu.com/test">hello!</a>
* The filter result is :hello!
  ......