|
-
Calling Function inside DIV from Parent
Hello,
Can someone tell me the proper way to execute helloThere() from the parent function getHelloThere()? This code is not working for me...
index.html
--------------
<script>
function getHelloThere()
{
document.getElementById('div1').helloThere();
}
</script>
<div id="div1">
<script>
function helloThere()
{
alert('Yahtzee');
}
</script>
</div>
All suggestions are appreciated.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
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