This question already has an answer here:
From the server is there a way to know that my page is being loaded in an Iframe
(1 answer)
Closed 10 years ago.
Is there any way of knowing if a page is being iframed in?
I was thinking something like if (window.parent), but that obviously isn't right.
Can anyone help?
if (window!=window.top) { /* I'm in a frame! */ }
Related
This question already has answers here:
How can I get query string values in JavaScript?
(73 answers)
Closed 4 months ago.
How can I make an html detects this? For example, I have a game in html, can I save the score to url like "example.com/game?score=15", detect this and set score to information in url? Or at least something like that? If you know what it's called, please tell...
I tried to search (cause I don't exactly know what it is) in google and youtube but no answer.
These are what are known as Request Parameters.
This question already has answers here:
Hiding the address bar of a browser (popup)
(11 answers)
Closed 6 years ago.
I have a exam on html with php, and i just want disable the address bar and even make it on a full size.
May i change it before the login but, i dont know how to do that by php.
Thank you for you help.
Hit F11.. There is no other way to do this.
This question already has answers here:
window.location.reload with clear cache [duplicate]
(5 answers)
Closed 7 years ago.
Is there any way that I can do a CTRL-F5 type of refresh and reload the whole browser window? I've tried the following code:
function showRefresh()
{
window.location.reload(true);
}
The page doesn't seem to want to refresh correctly. If I do a CTRL-F5 on my keyboard it reloads fine. Any help is much appreciated.
You could do this as well:
function showRefresh(){
window.location = window.location;
}
This question already has answers here:
Identifying Between Refresh And Close Browser Actions
(13 answers)
How can I detect browser tab refresh or close using javascript [duplicate]
(3 answers)
Closed 7 years ago.
I want to do somethin when users closing my webs. So I'd done like this:
window.onbeforeunload = function(){
#do something
}
But it's dispoint that I can't know the uers is doing close or not, because it's also can be refresh (like F5);
do anybody would like to help me?
This question already has answers here:
How can I set default homepage in FF and Chrome via javascript?
(7 answers)
Closed 9 years ago.
I searched the web in order to find a code for a button what sets current page to homepage - but found nothing usefull.
Does anyone have this code?
Thanks all
I asume you are not asking how, you as the user of the browser, to set the homepage; this might be useful: https://stackoverflow.com/a/10751061/2612112.
Only old versions of IE support this.