Jump to content
  • Advertisement
Sign in to follow this  
gamerking

a test

This topic is 4832 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

<html> <head> <script type="text/javascript"> function myfunction() { alert("HELLO") } </script> </head> <body> <form> <input type="button" onclick="myfunction()" value="Call function"> </form>

By pressing the button, a function will be called. The function will alert a message.

</body> </html>

Share this post


Link to post
Share on other sites
Advertisement
Me neither. Is this a question if that should work, or did you expect a button to be created in your post?

Share this post


Link to post
Share on other sites
Quote:
Original post by d000hg
Me neither. Is this a question if that should work, or did you expect a button to be created in your post?



yeah hoping

Share this post


Link to post
Share on other sites
Also, the forum software disables the vast majority of HTML tags when you post your message. You can only use <a>, <img> and a few others. Wouldn't be very smart to let people mess with your site layout or run whatever javascript thing they wanted, would it? [grin]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!