0

Hi,

i have script ,and i want to useit inside iframe ,does any one know how.

for eg:<i frame src=""></iframe>
is the normal way to use iframe. i wantto know cani use a script inside iframe.

2
Contributors
3
Replies
20
Views
3 Years
Discussion Span
Last Post by nauticalmac
0

just use <iframe src="yourscriptfile.php"></iframe>
(If you want to use PHP). then your script needs to write html.

0

Your source file for the iframe (e.g. html or php) can include javascript and css as well as html.
Note the following:
If you want to address elements from the page that contains your iframe use this syntax for example to scroll the iframe itself: parent.your_iframe_name.scrollTo(300,0);
If you want to call a javascript function in the parent page from javascript in the iframe use this syntax for example: onclick="parent.clickNewImage(22);"

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.