Hi, javascript and HTML help please?

  • Thread starter Thread starter WYSIWYG
  • Start date Start date
W

WYSIWYG

Guest
Hi, I am using the below code to add text....

<script language="javascript" type="text/javascript">
document.getElementById("background").addTextObject("Welcome", "Verdana", 12, "white", 3, 50);
</script>

I am just wondering if a way exists to add a button. In the above code you have ".addTextObject".... can I use an ".addButtonObject"?

If yes could you explain how please and if no could you show me another way. Thanks.
 
the same as text, just put <button>value</button> or <input type='button' value='value'> where you type the text.
I suggest you to try JQuery, it makes javascript development easier, it's a plugin for javascript, easy to use.
When i started using JQuery i watched a few video tutorials on how it works and i knew more about javascript then before, and making all in a easier way. I found them on themeforest.com
Try youtube, there are possibly a lot of jquery tutorials there. I suggest you to use it, will make your life easier :) It made my a lot easier :)
 
Back
Top