To remove the script.. just remove this line of code when you remove the menu
To determine if your page is throwing a script error.. open your page in Firefox.. not any other browser, use Firefox for testing script errors. If you are not testing your pages with Firefox.. now is the time to start..
Once you’ve previewed or opened your page in Firefox, click on the ‘Tools’ menu up top, then click on the ‘Error Console’ link.. as in this example
If you see an error and it’s with the menu script.. you’ll something very similar to the error message as noted in the above example..
To correct this error,
- open the page from which you’ve removed your menu
- find this code
- and delete the intire line of script.. which would look like this
Preview your page once removed.
Click on the Error Console in Firefox.. and this time.. press the ‘Clear’ option first.
Close the Error Console.. refresh the page in Firefox.. and retest to make sure the error has been corrected….