document.write

They have: 6 posts

Joined: Nov 1999

Please help - what am I doing wrong?

document.write("");

The onlick statement is throwing an error - how can I avoid it?

AndyB's picture

They have: 344 posts

Joined: Aug 1999

They have: 135 posts

Joined: Apr 2000

Ummm....don't put smilies in your code Laughing out loud ?

(sorry, couldn't resist...)

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

What AndyB is saying is: watch your quotes. make sure they match.

What KLWong is saying is: use Sad instead of Smiling

Hi KL: I also had to give in to temptation

Vinny

Where the world once stood
the blades of grass cut me still

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

document.write('');

You need to cancel out the quotes that are terminating quotes and make sure you are consistent. You shouldn't use single quotes for html.

Smiling Suzanne

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

don't hate me for asking, but why not use single quotes?

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Max,

I think Suzanne means single as in 1 type of quote throughout. If you note, she's using both types of quotes in her solution.

Vinny

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Yes, using all single or all double quotes is problematic. Also reserving the use of doubt quotes for HTML, and single quotes for JavaScript makes it easier to troubleshoot.

Smiling Suzanne

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

i gotcha Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.