Php call to wrapped javascript function

Hi

I was wondering if it’s possible to wrap a javafunction in html tags, i have a parent form and that uses an Iframe, the parent form holds a button called delete i want this button to toggle a javascript function on the childs page in order toggle this function do i need to wrap it div id and call the function from the command button like window.document.frames[‘myFrame’]…

thanks
James

which can only be done if both pages are from the same domain.

Your post is like a big blob of your thought process that has just been dumped on the page. You need to learn to use punctuation and to see what you’ve written from the point of view of the people reading what you’ve written. At the moment it’s a difficult-to-understand mess.

If you post some sample code of what you’re thinking of doing it might be clearer.

He wants a delete button on the main page to trigger a javascript function within the iframe page.