Jump to content

Passar o src de um IFrame numa variável


hardcore
 Share

Recommended Posts

Viva pessoal!

Tenho aqui mais uma duvida:

<iframe id="map" scrolling="no" width="500" height="400" frameborder="0" src="http://www.bing.com/maps/embed/?v=2&cp=37.11284847034366~-8.661319613456612&lvl=15&sty=h&where1=Meia%20Praia%2C%20Portugal&pp=37.11366981267929~-8.65822970867157&emid=c15a3f62-1cad-36b5-713e-507b51832b4d">
</iframe>

Imaginam que tenho esse iframe. O que eu queria era em vez de ter um link no src ter lá uma variável, para que seja eu a introduzir a string.

É possivel?

Abraço

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.