Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong with this code?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
if document.cookie = "home" then
document.write (&quot;<object id=\&quot;Agent\&quot; width=0 height=0 classid=\&quot;CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F\&quot; codebase=\&quot;#VERSION=2,0,0,0\&quot;> </object>&quot;);
end if

Keeps giving me this error...
Line:15
Char:34
Error: Expected ')'

Any ideas? Also, if you see anything else amiss, please point it out..lol As I am only going as far as the first error trying to debug it.

Thanks
Shawn
 
Forgot to add....the &quot;Line:15&quot; is the second line of code listed above
 
Use &quot;&quot; rather than \&quot;. VBScript does it this way, not like Javascript does.

document.write (&quot;<object id=&quot;&quot;Agent&quot;&quot; width=0 height=0 classid=&quot;&quot;CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F&quot;&quot; codebase=&quot;&quot;#VERSION=2,0,0,0&quot;&quot;> </object>&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top