• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Canvas within a page's iFrame, click to open a URL in that page's second iFrame?

Participant ,
Jan 31, 2022 Jan 31, 2022

Copy link to clipboard

Copied

My HTML5 Canvas is on a web page presented from within another page's iFrame. 

The Canvas is to be used as a sort of visual menu to open up other pages within a second iFrame on the same host page, so far nothing I have tried can do this. 

 

JefferyWright_0-1643660774015.png

My canvas is presented on the host page in the top iFrame, the lower iFrame is to display various web pages.

 

I have tried:

 

this.select_A.b_A.on("click", function () {
	window.open( '//website.com/page01.html', 'productsIframe')
	});

this.select_A.b_A.on("click", function () {
	productsIframe.src="//website.com/page01.html";
	});

this.select_A.b_A.on("click", function () {
	document.getElementById("productsIframe").src="//website.com/page01.html";
	});

	...and so on.

 

I even created a function with similar code, fired from the click event, another no-go. 

How is it possible to open a url in another iFrame on a mouseclick event from canvas? 

 

This is possible, surely. Isn't it? 

Thanks in advance for any helpful insight. 

 

 

TOPICS
How to

Views

127

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 31, 2022 Jan 31, 2022

Votes

Translate

Translate
LEGEND ,
Jan 31, 2022 Jan 31, 2022

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines