In Google Chrome, I've noticed that clicking some links seems to have no effect at all:
clicking this link does nothing at all.
Here is a JSBin and a JSFiddle.
Is this normal, or does it indicate that there is some kind of bug with the latest version of Google Chrome? I've never had this issue before, and links like these used to work just fine for me.
If you look at your developer console, you'll see the following:
Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
See https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
This is because of the fact that you can't display external pages in iframes. This is a browser limitation mostly for security reasons
Related
If this question is inappropriate on this site, please tell me where I should ask this question.
alert("Hello World!");
I have ran this simple code on codepen JS editor and Chrome developer console for hundreds of times and it has worked. It also had no problems running as an embeded code on the tutorial website I was following.
However, for some reason I'm getting no response (i.e. no modal window popups) when I try to run the alert code above on Codepen and JSFiddle. However it works on js.do online javascript editor, Chrome developer console, and the tutorial website I've linked above.
Please note that I've tried using different browsers, changing site settings, and even restoring browser settings and clearing browser data.
I usually use Codepen while I'm learning JavaScript, so I want to know what's the problem.
It seems there can be a new browser restriction. If I try to add an alert to Codepen and look to the Chrome console I see this warning:
A different origin subframe tried to create a JavaScript dialog. This is no longer allowed and was blocked. See https://www.chromestatus.com/feature/5148698084376576 for more details.
I found this website https://samy.pl/ and even with my HTML knowledge I can't find the source of his site?
If you type "view-source:" before the website it should bring up the source but it doesn't?
He blocked most or all ways to inspect his source.
How is this possible?
You can actually see the sourcecode using Internet Explorer, or Safari with IE 11 set as useragent.
I'm not certain how he does it, but it is some kind of JavaScript that checks some flag in Chrome that tells him whether or not the inspector is open, and if true he removes the body and updates page so everything disappears.
Using IE and inspecting the source should give you the answer :)
Up to my elbows in what is surprisingly the most elusive bug I've encountered thus far.
I've got a site I'm working on that has issues with links opening in Safari. The issue is isolated to the target appendage. To be clear, this issue is not that links do not open in a new tab, it's that they don't open at all.
For example, this will open just fine:
blaaaahh link
This, however, will do 'nothing':
blaaaahh link
Note that this is specific to PDF files. Links to any other type of resources work fine, even with the target appendage.
Note note: There is a ton of event tracking happening on this site. And the issue is resolved when JS is disabled. I've excluded all site-specific JS for testing, so that's not the issue. Anyone aware of anything with GTM or HotJar in Safari that could cause this?
I have to insert to HTML page image from facebook graph, for instance this one: http://graph.facebook.com/100004504487972/picture?type=large. In fact this link returns 307 Internal redirect.
I'm inserting this image with simple HTML img tag:
<img src="http://graph.facebook.com/100004504487972/picture?type=large" />
In most browsers it works well, but chrome for some reason doesn't follow redirect.
You can try this jsbin in different browsers to check out:
https://jsbin.com/yuhoqanisi/edit?html,output
I'm testing in latest chrome under ubuntu 16.04.
In fact it happen to be Ghostery extension for Chrome blocking image.
When i click Firebug's bookmarklet (Firebug Lite) on Internet Explorer .
There is an error on my page.
I can't solve this. Firebug Lite working all other websites, but doesn't working on my webpage.
You can check here : http://www.teknoblogo.com/yeni
The problem is that you have a facebook iframe in your html page, and IE restricts access of Javascript scripts to the document objects of frames that are from a different domain. (FireBug Light tries to iterate through all frames and load information about their stylesheets, etc.)
If you're debugging your own site, try to remove all external iframes and then load firebug light again. Otherwise, there may be a way to disable the restriction (by modifying IE's security settings) on your specific browser.