When ever I put the Iframe up it redirects my website to the site that I have Iframed,How can I stop this,And Just let the Iframe page stay in the Iframe
<iframe src ="Link" width="100" height="300"> <p>Your browser does not support iframes.</p> </iframe>
What is the link you are putting in it? Are you using the link to your homepage as the src link? I guess I'm still unclear as to the problem. Why do you want to use an iframe anyway? They are deprecated. It might be better to use a div tag.
I am still not sure what the problem is. Is it when the page loads? Or when you are clicking on a link? If it's on a link, you may need to change the target attribute. If its on pageload, the site in the window may have a script to make it take over as the parent window. I guess I still need more information. Can you give a more detailed description of what you are doing when the problem occurs and exactly what is happening.
You can do it in CSS also. Use a div tag and use the styles to set it to a specific size and location on your page. Use Overflow:Auto; to allow it to have scrollbars. That way if the page you insert into the div is too big, you can scroll. Look here for an example: http://seminsights.com/web-development/iframes-are-evil-if-you-must-try-this-alternative
Ok here is what I want done size does not matter aal I want is a few 1x1 iframes of a webpage Put the webpage I want iframed has to have somthing with java script where it makes it redirect to the page i want iframed