PDA

View Full Version : document.write



Nether$
17-12-2006, 10:01 AM
I have this javascript:


<script language="javascript">
<!--
document.write=("<img scr='../images/logo.png'>")
//-->
</script>

so why wont it work, i have tried all the variations, the document.image and everything.
can anyone help!?

Heinous
18-12-2006, 11:05 PM
Remove the equals sign. You're not setting a variable, you're using a function. ;X


<script language="javascript">
<!--
document.write('<img scr="../images/logo.png">')
//-->
</script>

Blinger1
19-12-2006, 11:31 AM
I'm Australian, therefore, I'm better than you.

so true!

Want to hide these adverts? Register an account for free!