Start New Discussion within our Web Development Community

I am trying to write current website url in a frame using javascript. Butt my methods does not working... What I want to do is to write the current url path into this code instead of "CURRENT+WEBSITE+URL+HERE" text.

My current iframe code:
<iframe allowtransparency='true' frameborder='0' height='600px' id='web search' marginheight='0' marginwidth='0' scrolling='no' src='' title='Find It' width='160px'></iframe>
In the iframe url src you will get "CURRENT+WEBSITE+URL+HERE" text where I want to put the current URL, so assuming a path of that site is "" , the iframe will show this url:' title='Find It' width='160px
It would me much better for me if you would code it, will help me a lot. Thanks

Sorry, I'm not sure what you really want. Do you have an existing page with an existing iframe element with the said URL? Do you want to replace the "CURRENT+WEBSITE+URL+HERE" text from a current existing iframe URL?

text from a current existing iframe URL?

well i just want to put that page URL which will have that iframe, and i wanna put that page address/URL instead of "CURRENT+WEBSITE+URL+HERE" , so it is not the iframe URL it is that page URL which will bear that iframe. Suppose i have put this iframe in so that the frame URL should like this: see in &url= in this address.. any idea? Thanks

This article has been dead for over six months. Start a new discussion instead.