It appears that its assumed that javascript execution will be at view level. How do I execute a script which needs DOM access of particular frame? Frame can be iframe or built using frameset.