I don't know the advantages and disadvantages of using them.
开发者_如何学JAVAI would like to know how they behave differently for
->cookies
->styling
->performance
->ease of use
->ease of implementation
->flexibility
->other pros/cons
->your preference
If I were you, I would use JS.
JS Pros:-
- No cookie restriction. IE rejects iframe cookies if P3P headers are not set.
- No DOM access restriction. Interacting between JS codes in parent and iframe codes is not easy and needs workarounds. Not beautiful.
- Performance is not a big deal for JS on today's browsers.
- You get more flexibility here, because of first two points.
Which you feel is easier is debatable. I see no cons for JS.
精彩评论