0

Can somebody tell me where my code is wrong?

Here is the code block to pass from the parent to the iframe:

document.getElementById('street').contentWindow.map.setCenter({lat:latt, lng:lon});

This doesn't work. The latt and lon are text values from the user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.