How to remove this error while accessing website online. I have added website to google webmaster but not working.
You have to remove the malware code (you probably did that already), then you have to restore your original legitimate content and get reviewed by Google. Once Google staff see that a legitimate content is there and no malware anymore, then they will remove the warning.
It needs to be reviewed before it is clear of Malware, login to Google Webmaster Tools and you can make your submission.