IE5中用JavaScript跨frame加option問題 (轉)

amyz發表於2007-08-15
IE5中用JavaScript跨frame加option問題 (轉)[@more@]

跨frame加option,以下程式碼在中會出錯,但在IE4、、Opera6、NNx中都沒有問題:



這樣才是對的:


的解釋如下: In general, at least in the older browser versions, performance seems to improve if you call methods on the target frame if they are stored there as well. This is particularly relevant when trying to add options to a select box in another frame. Make sure you create the option in that other frame so you are adding it to a local select box, instead of trying to cross frame boundaries.

.com/library/default.?url=/library/en-us/dnteam/html/Webteam02052002.asp" target=_blank>

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752019/viewspace-958856/,如需轉載,請註明出處,否則將追究法律責任。

相關文章