Replacing hyperlink with javascript

J

Joseph Mouhanna

I have a web with several frames. I would like to click on a picture, and
have two different pages load in two different frames. I have the following:

The first frame is called MainFrame
The second frame is called SecNav

In a third frame, I have a page loaded, with a picture in it. I want to
click on the picture and have two different pages load in MainFrame and
SecNav.

From FrontPage, I did the following:

Double clicked on the picture, and the General Tab, and then in the Default
Hyperlink, I entered the following code fragment:

javascript:parent.frames.MainFrame.location='vision.htm';parent.frames.SecNav.location='SecNav_SecondMenu_Active.htm'

When I try to run it locally by double clicking on index.htm, and clicking
on the picture, I get a message saying that a script is blocked, I unblock
it, and nothing happens. If I purposely make a syntax error in the code
fragment, the script stops executing. Any ideas?

--thx, Joseph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top