Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14196

Re: Newbie, want onclick to work, using Verizon sitebuilder

Message-ID <3596002.OIYgp5SubR@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-05-29 13:51 +0200
Subject Re: Newbie, want onclick to work, using Verizon sitebuilder
Newsgroups comp.lang.javascript
References <7fr7s7p34k5b7oc8hi82ncafhtng4tobo1@4ax.com> <01c8s75sghli0aiofi8uabcun9k7n23nlj@4ax.com>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Jeff North wrote:

> micky wrote:
>>| Newbie, working on first page.  I appreciate any help you can give me.
>>| 
>>| Parts of this are going well but with Verizon I'm forced to use
>>| sitebuilder by Trellix.   I'm not ready yet to pay to use another
>>| wehosting site, because I only have a few weeks to work on this, but
>>| then I won't be able to for a year or two.
>>| 
>>| 1) What is wrong with this:
>>| <INPUT value="Favorite Page" type=button
>>|  onclick="<A href="https://www.myfavoritesite.com"> </A> >
> 
> Note the quotes in the above line. You are missing the closing quote
> for the onclick statement.

`onclick' is an *attribute* here, _not_ a statement.  HTML is _not_ a 
programming language, it is a *markup* language.

> You will need to rework this line to:
> onclick="<A href='https://www.myfavoritesite.com'> </A>" >
> or if you want double quotes throughout the line you will need:
> onclick="<A href=\"https://www.myfavoritesite.com\"> </A>" >

Utter nonsense.  The value of the `onclick' attribute must be program code, 
without further specification, a syntactically correct ECMAScript /Program/.  
It MUST NOT contain an unescaped `<' character for that is a an STAGO (star 
tag open) delimiter.  ECMAScript escape sequences *cannot* be used to escape 
markup delimiters as the markup parser will still see them.  (And the value 
of the `onclick' property must be `null' or a reference to a Function 
instance.  The above is neither.)

Please get a minimum clue before you try to help.  Nobody is helped by 
people posting their smattering here; free time of regulars is wasted with 
otherwise unnecessary corrections.  You are not required to reply, you know.


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-05-28 18:01 -0400
  Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 00:25 +0200
  Re: Newbie, want onclick to work, using Verizon sitebuilder Jeff North <jnorthau@yahoo.com.au> - 2012-05-29 12:13 +1000
    Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 13:51 +0200
      Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 14:06 +0200
  Re: Newbie, want onclick to work, using Verizon sitebuilder Gene Wirchenko <genew@ocis.net> - 2012-05-28 21:32 -0700
    Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-05-29 13:55 -0400
      Re: Newbie, want onclick to work, using Verizon sitebuilder Gene Wirchenko <genew@ocis.net> - 2012-05-29 11:26 -0700
        Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-06-23 14:03 -0400
  Re: Newbie, want onclick to work, using Verizon sitebuilder Dr J R Stockton <reply1222@merlyn.demon.co.uk.not.invalid> - 2012-05-29 23:49 +0100
  Re: Newbie, want onclick to work, using Verizon sitebuilder SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-05-30 15:13 +0200
    Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-06-23 15:26 -0400

csiph-web