|
-
Question about DIV and JavaScript
I have this line of code:
<div class="blue" onclick="myfunction()" id="blue2">
This works fine and makes the JavaScript work if you click the Div.
Is there a way to make it so you don't have to click it, but it works automatically upon page load?
Thanks.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks