Jump to content

spider_designs

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About spider_designs

  • Rank
    Newbie
  1. hmmm intresting ..well maybe just to me ...thanks Scott
  2. == I think:)eg.if ("xxx" == "xx") {alert ('xxx')}if ("xxx" == "xxx") {alert ('xx')}spider
  3. spider_designs

    const?

    <html><head><script type="text/javascript">const nochange='This should always be the same';function writeIt () { document.writeln (nochange);}</script></head><body><input type="button" onclick="writeIt()" value="Write"></body></html> how come any time I add a const statement to a script I get an error at the line of the const statement? also functions called from an event eg onload="test()" return an object expected error ( even if they are not related to the const statement).Core javascript guide says:You can create a read-only, named constant with the const keyword. The syntax of a constant identifier is the same as for a variable identifier: it must start with a letter or underscore and can contain alphabetic, numeric, or underscore characters. const prefix = '212'; spider
  4. I can't thank you enough .. I have checked every where and could find find what I was looking for ...thanks again aspnetguyspider
  5. hey there ... SpiDeR's the name Im 23 Male fae Bonnie Scotland ... Just thought I'd say hi
  6. Ok ... I have been learning dhtml (js/html/css) for the past few days and what Im trying to do is create a layer that can be added to the page after it has been loaded (Currently I am only working with internet explorer)I had intended to use the <tag class="thisclass"> to format the style and <tag id="thisid"> to keep track of it through js var winTH = document.createElement('div');winTH.id = "win_T_Holder" + dynWinCount;//winTH.class = "ThisClass" -- returns error even although -//<div id="win_T_Holder0" class="thisClass"> is validhtml (forgive me if its not :-) ) so I guess my question is :- Is there any way to set class="thisClass" through javascript??btw this is my first post ever Go Easy;)Spider
×
×
  • Create New...