Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Functions
Rating 1 V
lotl
post Feb 5 2008, 02:24 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 5-February 08
Member No.: 57,387



First put this code into your script:
HTML
<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:
HTML
<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.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Functions In Win32(2)
  2. Writing Your Own Functions In Php(2)
  3. Call Cookie Functions In Iframe(2)
  4. Using The Image Editing Functions Of Php(4)
  5. Add Copy To And Move To Functions To Right Click Menu(3)
  6. Functions Failing When Embedded In If()(3)
  7. The Best Keyword Tools (meta-tags + More Functions)(1)
  8. Globals Inside Functions(4)
  9. Help With Functions In C++(4)
  10. Some Php Functions Explaination Required(2)
  11. Cooolest Winapi Functions(0)
  12. Various String Functions In C(5)
  13. Wappy's Php Snippets(13)
  14. Mirc Identifiers In Vb6(0)
  15. Gd Functions(2)
  1. Javascript Help(1)
  2. Disabled Functions List?(5)
  3. [tut/mod]functions Learning The Basics(0)
  4. Ucfirst() And Ucword() Functions In Game Maker(2)
  5. [php](simple) Using Functions To Combine Values In A Form(2)
  6. Encrypt Functions(0)
  7. How Do Cameras Capture Pictures?(12)
  8. Arrays Outside A Function(3)
  9. Php Functions To Send Mail(4)
  10. Php Email Validation(1)
  11. Ajax Functions On Free Host(6)
  12. [php] Clean Code Functions(5)
  13. Functions(7)


 



- Lo-Fi Version Time is now: 26th July 2008 - 06:31 AM