In some cases, the password protection may conflict
with external JavaScript .js files, especially with JavaScript
based web menu.
The best way is to remove the JavaScript web menu from the
locked HTML file, but if you don't want to do that, there are
still two ways to solve this problem.
First method:
Firstly, you can simply move the scripts from the external
.js file to the HTML file itself to solve the problem.
For example, a reference to external .js file in your HTML
file may look like this:
<script language="javascript" src="myscript.js"></script>
Please check your html file, if it contains such references,
please move the javascripts from the external .js file to the
html file itself, then this problem will be fixed.
That is, change the line to:
<script language="javascript">
(move scripts from file "myscript.js"
to here)
</script>
Second method:
If this can not be done, you can use the second way. In this
way, you can remove the JavaScript web menu from the locked
page, and embed the locked page to your other web pages with
IFRAME.
Below is the example for how to use IFRAME to embed a locked
page.
|