Javascript - OnClick to open page

Wondered if someone could help me out with some Javscript.

I have a web database that has two frames. The menu frame to the left and the main frame. When the web page first loads, it loads the menu frame and a page called ‘homepage’ in the main frame. Users can then navigate using some menu options in the menu frame.

I’ve inserted an image in the menu frame and I want people to be able to click this image to load the original ‘homepage’ into the main frame.

I’ve tried a few things but I can’t seem to get it to work. I open the page in designer and click the image. Domino Designer highlights the OnClick option and in the programmers pane for Client/Javscript, I enter http://full.servername/test.nsf/HomePage?OpenView

However, nothing happens. Am I supposed to be using the window.open command? Any help would be appreciated.

Oh and how would I get the hand cursor to appear as well? Sorry to be cheeky!

Thanks,

Mike.

Subject: Javascript - OnClick to open page

Try this…

top.location.href = ‘http://full.servername/test.nsf/HomePage?OpenView’;

Subject: RE: Javascript - OnClick to open page

No sorry, that didn’t work.

I may just insert some text and put a link on that which will be easier. Thanks for your help anyway…

Mike.

Subject: RE: Javascript - OnClick to open page

I’ve only just realised that I cannot do that either. I was thinking I could use this command:@Command([OpenPage];“HomePage”)

However I forgot (or didn’t think straight), as it’s a web page, I cannot use the @command.

Back to the drawing board…

Subject: RE: Javascript - OnClick to open page

Got it working now. I change the ‘Run’ to Client/Common JavaScript and just used the following:top.location.href=‘http://full.servername/test.nsf/HomePage’;

This method just reloads the database. I omitted the ?OpenView command as this opened it in as a new page, but I wanted to keep in in the same frame.

Thanks Joffrey.

Mike.