Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¶¼ÎÞ·¨Ö´ÐÐ. 


Ïà¹ØÎĵµ£º

HTML»ù±¾¹¦:FRAME±êÇ©µÄʹÓÃ

    ¹¤×÷ºÜ¶àÄêÁË,¿ÉÊÇ»ù±¾ÉÏûÓÐÖ±½Óд¹ýHTMLÒ³Ãæ.×î¶à¾ÍÊÇά»¤Ð޸ĹýһϱðÈËдÁË.
    ×î½üÔÚ×öÒ»¸öÏîÄ¿µÄ»ù±¾Éè¼ÆµÄʱºò,ÒªÌá°¸¸ø¿Í»§µÄ»­ÃæÑùÀý.Òò´Ë¿ªÊ¼×Ô¼ºÐ´¼ÙµÄHTML»­Ãæ.ΪÁ˽Úʡʱ¼ä,ÆäËûÈ˶¼Ö»Ð´»­ÃæµÄÖ÷ÒªÄÚÈݲ¿·Ö.¶ø»­ÃæµÄÍ·²¿,µ×²¿ÒÔ¼°Ö÷²Ëµ¥,×Ӳ˵¥¶¼ÓÃframeÀ´ÌåÏÖ.
  ......

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ

HTMLÖÐSelect²»ÓÃDisabledʵÏÖReadOnlyµÄÁíÀàʵÏÖ.
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>   ......

.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" />
ÕâÖÖ¿ÉÒÔÓÃÓÚ×¢²áʱµÄ³¬Á´½Óµ½±ðµÄµØ·½£¬µ±È»¿ÉÒÔ·¢»ÓÏëÏñ£¬Ë ......

asp.net ½«HTMLÎļþµ±ASPXÎļþ½âÎö

Ê×ÏÈÔÚÓ¦ÓóÌÐòµÄWEB.CONFIGÐÞ¸ÄÈçϽڵ㡣
<httpHandlers>
    <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
<assemblies>
    <buildProviders>
        <add ext ......

JSF+HTML±êÇ©×ܽá

*Ò³ÃæµÄ¿ªÍ·
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<%@ taglib uri="http://jsftutorials.net/htmLib" prefix="htm"%>
<%@ tagl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ