Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I using below line of code to add the src of an iframe this code is working fine IE and chrome browser, buts its not working in firefox ,and when i am putting this code in console its working properly in firefox as well.

$("#iframelogout").attr('src', 'https://Someurl.com');

Please help asap.
Thanks in advance
Posted
Comments
Have you tried like below?

document.getElementById('iframelogout').src = 'https://Someurl.com';
jitendra kachhi 3-Jun-15 2:28am    
Yes i have tried this.
When I try this in jsfiddle, it is working for all the browsers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900