hi all,
can anyone help for my problem.

is it possible to get iframe id like case below?
index.html
<iframe id="iframeid" src="checkid.html"></iframe>

checkid.html
<script>alert([iframeid]);</script>

advance thanks.
sumiko

Recommended Answers

All 2 Replies

You need to add a name attribute to the iframe:
index.html
<iframe id="iframeid" name="iframeid" src="checkid.html"></iframe>

checkid.html
<script type="text/javascript">alert(window.name);</script>

thank you for the reply.
it works perfect!!!!
i think could sleep well tonight, thank you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.