I am a javascript noob and I need help with this problem !
On a specific condition a function is called and when it is called , I want an image to be displayed ! How do I do that ? this is not working!
<script type=text/javascript>
function _enabled() {
document.write(<img border=0 src=http://4.bp.blogspot.com/-C4vvMEB9MyI/TfW0lduV2NI/AAAAAAAAAZc/N7HL1pUusGw/s1600/some image.png />);
}
var r =true;
</script>
This is not working , I get this error
Error: missing ) after argument list
Source File: file:///C:/Users/Gowtham/Desktop/new%20%202.html
Line: 5, Column: 33
Source Code:
document.write(<img border=0 src=http://4.bp.blogspot.com/-C4vvMEB9MyI/TfW0lduV2NI/AAAAAAAAAZc/N7HL1pUusGw/s1600/sjs.png />);