0

I got Page work with parameter and ı want to show it in iframe. however when ı set to iframe location my iframe not load all javascript. Normally Page works. My ıframe was working too. but now it is not working. why?

 window.frames["MyFrame"].location = "Component/Component.php?pagename="+$(Element).attr("page-name");

it is my javascript code for set iframe location.

2 Answers 2

4

Try src attribute :

window.frames["MyFrame"].src = //...
Sign up to request clarification or add additional context in comments.

Comments

1

Try this

document.getElementById('MyFrame').src="Component/Component.php?pagename="+$(Element).attr("page-name");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.