Link to home
Start Free TrialLog in
Avatar of AEII
AEII

asked on

Attach a Script to a Button

I am able to design basic html websites, but I have no experience how to
attach a piece of script code to a button ...

I have to attach a button to each of the scripts a company provided for a demo ...

Can someone give me the basic syntax to attach the following code sample to run when the
user clicks a button?

<SCRIPT LANGUAGE="javascript1.2" type="text/javascript" SRC="http://testcode.com/Include.aspx?AffID=Test&PageID=GENERICSCRIPTPETEDEMO"></SCRIPT>

Typically this type of script is just added to a html page and it automatically runs when the page
loads ... since I have 13 demos to show I want to just activate the code when the user selects the
one they want to view ...
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AEII
AEII

ASKER

I appreciate your replies, but I did accomplish it another method ...
I am disappointed in that a reply to have me read a HTML basic book first was
given ... I prefer to see models and test and play around to better understand the code being performed ... not read someone's idea of how they want you to learn the subject they are considered an expert at ... I need much more kinestetic environments ...

Also I thought this was why I pay for the subscription each year to be able to ask at times some very stupid questions ...