Hi, does anyone know if it's possible to emulate the onclick event of a menu item from Javascript - so basically firing the function within the correct .js script to redirect to a URL for instance?
Thanks in advance.
Tim
Calling a menu item from Javascript
Hi,
I still am not sure what you want to do, but you can use the offfunction/onfunction to activate a function on mouseover which is this sample.
http://milonic.com/menusample15.php
You can also set up a function to be activated when you click a link in the menu. For example, you could have a new window function such as
Then in the aI string you'd put this in the url= area
Ruth
I still am not sure what you want to do, but you can use the offfunction/onfunction to activate a function on mouseover which is this sample.
http://milonic.com/menusample15.php
You can also set up a function to be activated when you click a link in the menu. For example, you could have a new window function such as
Code: Select all
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
}
Code: Select all
url=javascript:newwindow('http://whatever/');");