Jump to content
xisto Community
Sign in to follow this  
lotl

Functions

Recommended Posts

First put this code into your script:

<script>
function FUNCTION NAME()
{
*****
}
</script>

 

Then replace ***** with one of these:

alert("TEXT")

window.location="URL"

document.write="TEXT"

any popup from the "popup" page

any function name

Then to start the function you can choose one of these:

<input type="button" value="TEXT" onClick="FUNCTION NAME()">
<body onload="FUNCTION NAME()">
<body onunload="FUNCTION NAME()">
<body onmousemove="FUNCTION NAME()">
<body onclick="FUNCTION NAME()">
<body onbuttonpress="FUNCTION NAME()">

 

Notice from rvalkass:

Again, correct BBCodes added. Also, please don't sign off your posts - that's what the info to the left of each post is for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.