Hi all,
Help please.
I need to be able to call a function from within a function. Basically, I have a JavaScript menu, and I want one of the menu items to call a function that opens a special window (that will have a Web page inside).
So far I have this:
In "menu.js" I have the line:
menu[0][2] = new Item(' Page in Special Window', 'pageinspecialwindow.html', '_new', 60, 10, 0);
In the main web page I could add a link (to open the special button) like this:
<p><a href="#" onclick="mywin002=openFunction('pageinspecialwindow.html',550,600,null,null,'mywin002',5,false,false,true,'#FF8000','#FFC184');return false">Open Page In Special Window</a>
How do I call the function that is called by onclick in the menu item. I really hope this question makes sense.
I would appreciate any help.
"The important thing is not to stop questioning." - Albert Einstein
Help please.
I need to be able to call a function from within a function. Basically, I have a JavaScript menu, and I want one of the menu items to call a function that opens a special window (that will have a Web page inside).
So far I have this:
In "menu.js" I have the line:
menu[0][2] = new Item(' Page in Special Window', 'pageinspecialwindow.html', '_new', 60, 10, 0);
In the main web page I could add a link (to open the special button) like this:
<p><a href="#" onclick="mywin002=openFunction('pageinspecialwindow.html',550,600,null,null,'mywin002',5,false,false,true,'#FF8000','#FFC184');return false">Open Page In Special Window</a>
How do I call the function that is called by onclick in the menu item. I really hope this question makes sense.
I would appreciate any help.
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)