Hey friends, I got stuck again here. Tried googling out and cudn't find a right solution.
Here is my problem defination :
There is a div with id="menu" and I've created some menu's using ol and ul
Now I've created a another div with id=content and I've kept it blank.
Now I've linked the menus using <a href="#" onClick="load();">
And in the head part I've used a script tag and created a function
function load()
{
document.getElementsByID("content").innerHTML="";
}
Now the problem is whenever I write Hello / Hi in the double quotation there or sumthing like this it works.
But when it crosses one line it doesn't works. And gives error.
Well if I've mistaked in syntax spelling please ignore that coz I'm using Dreamweaver for my original work.
What to do now?? Or do I've to do it in any other way??
Lastly sorry for my bad english.
Here is my problem defination :
There is a div with id="menu" and I've created some menu's using ol and ul
Now I've created a another div with id=content and I've kept it blank.
Now I've linked the menus using <a href="#" onClick="load();">
And in the head part I've used a script tag and created a function
function load()
{
document.getElementsByID("content").innerHTML="";
}
Now the problem is whenever I write Hello / Hi in the double quotation there or sumthing like this it works.
But when it crosses one line it doesn't works. And gives error.
Well if I've mistaked in syntax spelling please ignore that coz I'm using Dreamweaver for my original work.
What to do now?? Or do I've to do it in any other way??
Lastly sorry for my bad english.