PDA

View Full Version : restricting user from accessing HTML contents when some frame is opened.


shinde_vishvana
10-22-2007, 02:26 AM
Hi,
I want to know that is there any way with which I can restrict user from accessing other frame contents on HTML page when certain frame is open.
I have three frames on HTML page when user clicks on a link on 2nd frame it opens a 3rd frame. I want to restrict user from clicking on 1st or 2nd frame until certain details are filled on 3rd frame & it is closed. This problem I am able to implement without frames but changing frame structure is not affordable. The functionality should be such that in case of alert message in HTML user has to click ok if he want to use page contents otherwise the page is non clickable or non reachable by any means. I am badly in need to implement it! :( Can this be done with javascript?

diades
10-22-2007, 07:27 AM
There is no way to stop someone from reading the source code of a page that I am aware of.

shinde_vishvana
10-23-2007, 01:38 AM
I know that I don't want to stop user from viewing source code I want to restrict him when certain frame is to be accessed & at that time I want to get same behavior as alert do when you try to bypass it without clicking or canceling it. so I want him not at all able to click or do anything to other HTML contents. I think u would have understood my requirement. :)