We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Firefox evaluation of javascript in href of anchor inside an iframe

  • 1 trả lời
  • 3 gặp vấn đề này
  • 16 lượt xem
  • Trả lời mới nhất được viết bởi the-edmeister

more options

i am trying to evaluate some javascript after the click of a button in an iframe. The button is a link and the javascript is evaluated in the href of that link. It is not my choice to evaluate js in the href but i dont have access to any other attribute because it is an SSRS report. It seems however that no environment variables are defined in the scope of the iframe button, no console no documentnot even self. When i open the iframe report directly and not inside an iframe the scope of the button js includes all the important environment variables. I am attaching the code of the button.

http://stackoverflow.com/questions/32350144/firefox-evaluation-of-javascript-in-href-of-anchor-inside-an-iframe

Remember that is within an iframe, and the problem only occurs then. The below code generates a

uncaught exception: ReferenceError: self is not defined


<a tabindex="1" href="javascript:eval%20(%20%20%20%20%20unescape%20%20%20%20%20('self')%20)" style="text-decoration:none;" target="_top"></a>

i am trying to evaluate some javascript after the click of a button in an iframe. The button is a link and the javascript is evaluated in the href of that link. It is not my choice to evaluate js in the href but i dont have access to any other attribute because it is an SSRS report. It seems however that no environment variables are defined in the scope of the iframe button, no console no documentnot even self. When i open the iframe report directly and not inside an iframe the scope of the button js includes all the important environment variables. I am attaching the code of the button. http://stackoverflow.com/questions/32350144/firefox-evaluation-of-javascript-in-href-of-anchor-inside-an-iframe Remember that is within an iframe, and the problem only occurs then. The below code generates a uncaught exception: ReferenceError: self is not defined <a tabindex="1" href="javascript:eval%20(%20%20%20%20%20unescape%20%20%20%20%20('self')%20)" style="text-decoration:none;" target="_top"><img onload="this.fitproportional=true;this.pv=0;this.ph=0;" src="/ReportServer/Reserved.ReportViewerWebControl.axd?ExecutionID=cgj2rc55ffw43k45lk0yk055&amp;Culture=2057&amp;CultureOverrides=False&amp;UICulture=9&amp;UICultureOverrides=False&amp;ReportStack=1&amp;ControlID=faa6cce17cd640bf8ebe1f6af602c84b&amp;OpType=ReportImage&amp;IterationId=62c2cb36498248bf8b8b9e784a09d4b8&amp;StreamID=68b4d5bd-b6bf-4d8a-8ad4-b254b9e67c56" border="0" height="35" width="93"></a>

Tất cả các câu trả lời (1)

more options

This forum is for end user support primarily. See this KB article about developer support. https://support.mozilla.org/en-US/kb/where-go-developer-support