It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

document.writeln()

document.writeln()

Postby hiyatran on Tue Feb 08, 2011 3:14 pm

I'm sorry if this question seem very basic but I just start learning javascript.
I would like to display an image but not sure why it is not working. In a nutshell, here's my code

Code: Select all
<html>
<head></head>
<body>

<script type="text/javascript">
document.writeln("<img src=/"xMark.jpg /" width=25 height=25 >");
</script>

</body>
</html>
hiyatran
 
Posts: 18
Joined: Mon Jun 21, 2010 1:53 am

Who is online

Users browsing this forum: No registered users and 6 guests