Home | Products | Downloads | Order Now | Contact us      

   Best Webmaster Software Tools for Website Building!

How to fix the problem with JavaScript web menu?

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.

This is to display a JavaScript based web menu:

 

This is about how to use IFRAME to embed a locked web page:

Source code:

The example5.htm is the actual locked page.

Below is the display of example5.htm (username: mtopsoft, password: 123456). It really looks like it's part of current page, but it's not. It's just a standalone page names "example5.htm".

 

Search This Site:

Advanced

Main

HTML Password Lock
Screenshots
Order Now!
  Download Now

Help

Online Help
Quick Start
FAQ

Online Example

Single Password
Multi-Users/Passwords

Related Products

Search Engine Composer
Encrypt HTML Pro
Web Button Menu Maker

Who likes our products:

Rated 4.5 stars at SnapFiles
Pop at Cnet Download.com

Rated 5 Stars at The File Transit!

Home | Download | Order Now | Contact us | Links
©Copyright 2002 - 2007 MTop Software Inc. All Rights Reserved.