Discussion Locked

How to link javascript?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a javascript that I want to have run when the link is clicked. How do I do it?
Example -> to cause a linked page to open at a certain size by using javascript.

3 replies

by johnvogel

To run a javascript program, whenever someone click on a link, you would use the onClick="" function. The syntax is:

Here's some HTML that does what you are talking about above, opens a link in a new sized window. You can copy this and pase it in your HTML editor.

Example


Click here to

This discussion is closed to new replies.