Forum Moderators: open

Message Too Old, No Replies

src=\"\"?

         

sikooi

10:46 am on Oct 4, 2004 (gmt 0)

10+ Year Member



what is the meaning by src=\"\"?
where can i find the image file?
normally we will put src=\"myimage" something like that,right?

anybody can help me?

:)

Bernard Marx

11:46 am on Oct 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It means leave the src attribute blank.

You don't need to escape the quotes with backslashes unless they are part of a string that you are writing to the document (or innerHTML) - even then, you don't need them if you start with single quotes

document.write("<img src=\"thing.gif\">")
or
document.write('<img src="thing.gif">')

sikooi

12:39 am on Oct 5, 2004 (gmt 0)

10+ Year Member



Thanks...Bernard Marx!