Open Menu item in new Window

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
rrattra

Open Menu item in new Window

Post by rrattra »

Hi,

I had added one custom report into menu using menu editor. It is working fine. The only problem is that I have to press BACK to go back to my page.

I want to open it into new page. Please advise how can we achieve it.

When i add Javascript in Menu link,

< Java script > <My Host>/<Directory>/h t t p : / / .... Link not found.

Means it add My host and directory to script and convert it into URL. Then try to open it.

Please advise.

Thanks


Webmaster
User
Posts: 9427

Post by Webmaster »

If you open your page in a new window, you cannot press BACK button because the window is NEW, there is no previous page. But you can add a "Back" link in your custom page and do that by JavaScript. Google "window opener" for more info.


rattra

Post by rattra »

Yes, I do not want "Back" Link to that page. But, I want that the perticular menu item open in new window.

Once finish, I will kill it.

Please advise.

Thanks


Nicole

Post by Nicole »

Just use this code for a new window in menueditor for field URL:

javascript:void window.open('page_to_open.php')


rrattra

Post by rrattra »

Thanks Nicole,

It is working.

Regards


khonyot
User
Posts: 5

Post by khonyot »

Nicole wrote:
Just use this code for a new window in menueditor for field URL:

javascript:void window.open('page_to_open.php')

Thanks !!!


Post Reply