Disable Browser From Refreshing?
Feb 18, 2009
Is it possible to disable the browser from refreshing when settings document.location.href
for example here's what i would like to do
if you're at mysite.com you'll click on a link. that link will fire a func that will make the location mysite.com/about however i don't want the browser to refresh. instead i want to write some javascript that will do someother stuff. i know it seems pointless but for the project i am working on it actually make pretty good sense (to me at least LOL).
i don't care about clicking the refresh button or F5 right now. just not having the browser refresh when i change the document.location.
View 1 Replies
ADVERTISEMENT
Dec 26, 2008
I have a page with various divs containing SWF's and some HTML and JavaScript. The problem is that, when the page is first visited using IE7, half of the content doesn't appear. So, I have created a loadDivs(); function that looks like this::
Code:
function loadDivs()
{
var mardi2= $('mardiGras');
mardi2.show();
[Code].....
View 6 Replies
View Related
May 8, 2006
Is there a way to tell when the user closes the browser that doesn't
also happen when a page is merely being refreshed?
View 8 Replies
View Related
Jul 20, 2005
Is there a method in onClick event to refresh the browser. I'd like to
have users click on a link to listen to a streaming audio feed, but at
the same time as the click, refresh the browser so that my animated
gifs will still animate.
View 2 Replies
View Related
Aug 6, 2010
I'm writing php based website that queries a database and writes the html with the results. On the home page, I am querying one database and receiving data to connect to other databases (i.e., database hostname, username, and password). Depending on the link selected, the homepage creates a dynamic form and sends the data via method=post. The next dynamic webpage receives the data via $_POST and connects to a different database for the rest of the website content.
I can successfully select a link on the home page and load the data for the second page the first time, but I have a problem when I hit back on the browser. The browser takes me back to the home page but if I select another link for another database, it does not "post" the new database info and the second page looks the same as the first time it loaded.
Here is my code
Code:
function database(project, hostname, username, password) {document.body.innerHTML += '
<form id="databaseform" action="project.php" method="post"><input type="hidden" name="project" value="' + project + '">
<input type="hidden" name="dbhostname" value="' + hostname + '">
<input type="hidden" name="dbusername" value="' + username + '">
<input type="hidden" name="dbpassword" value="' + password + '">
<input type="hidden" name="dbpassword" value="' + password + '"></form>';document.getElementById("databaseform").submit();}
View 5 Replies
View Related
Jun 29, 2010
Not what i would like but the client wants the browser re-sized on the site loading/refreshing... Been using the following and it works fine.... apart from in Safari. how i can get it working in Safari, or no chance?
Code JavaScript:
$(document).ready(function() {
window.resizeTo(1152, 866);
});
View 6 Replies
View Related
Oct 11, 2005
Can I disable the ctrl + f funtionality in the browsers?
View 3 Replies
View Related
Feb 14, 2007
I have a quiz application made in PHP. The quizzes have a time limit, and i display the time left using javascript in a textfield. I always initialize the timer on document load. I also have a page navigation that switch between pages, and i maintain the time value from the last page.
Now the problem is that if the user clicks on back button of the browser and after on forward, the timer gets reinitialized with the start time, and in this way he can cheat.
Can you please tell me how can i disable all navigation on my page?
View 3 Replies
View Related
Feb 23, 2010
Is there some javascript code I can put on my webpages to prevent visitors at my website from saving a web page to their hard drive, or printing a webpage?
Is there even a way to disable all the menus of their browser?
View 1 Replies
View Related
Aug 16, 2006
how I can disable a menu item such as "save as" in the Internet Explorer or Netscape using Javascript.
View 8 Replies
View Related
Aug 29, 2009
I have a chunk of jquery that is working in all browsers except IE.
I know it's possible to target a piece of code AT a specific browser but is there any way to EXCLUDE it from a certain browser?
I'd be happy for IE to just not see this chunk of code...?
View 2 Replies
View Related
Mar 13, 2009
I am writing a prgram in php.when i click "log out "button ,it redirects to my first page "index.php".(username & password)and then by clicking back button in the browser ,it showing all my previous pages that i visited.I want to disable back button in the browser (javascript should support in all browser) using javascript or php
View 3 Replies
View Related
Feb 8, 2007
can i add some simple function at the 'X' button (close button) on the browser which will check whether user enter all fields and if not, prompt them to enter.
(i wanna do this so user cant close the window in half way of the form process)
or is there anyway to disable it? or open a window without the title bar?
View 5 Replies
View Related
Nov 4, 2010
I've been tasked with the javascript and layout for an application that uses the browser engine (embedded browser I supposed it is). So it's not the actual browser, it looks like an application. Problem is, you know how you can drag and drop an image or html file into a browser and it will open it? Well, can this be prevented via javascript?
View 4 Replies
View Related
Jul 23, 2005
I would like to disable the ability of the user hold control and click
and get the dropdown menu. I am ultimately discouraging users from
easily getting a copy of the image. I was able to do this and disable
dragging on all browsers I have tested except Safari (Mac).
Code:
View 5 Replies
View Related
Nov 10, 2011
I want to create some web pages in asp.net on which I want to avoid the user to refresh the page.
I have disabled the refresh options using key board event which are as follows:
1) F5
2) Ctrl + F5
3) Ctrl + R
But I want to avoid user clicking on the Refresh Button of the browser.
how can we disable the Browser Refresh button/menu using Javascript?
View 2 Replies
View Related
Oct 19, 2006
I have a form with some text fields that are disabled UNLESS a checkbox is checked. Initially the text fields are disabled and the checkbox is unchecked.
The code is something like this:
Code:
function disableTextbox() {
if (chk.checked) {
txt.disabled = false;
} else {
txt.disabled = true;
}
}
<form action=something.cfm>
<input type=checkbox name=chk onclick=disableTextbox();>
<input type=text name=txt disabled>
<input type=submit>
</form>
When the form is submitted, some validation is performed. If anything fails, I display an error message and show a link to go back (history.back).
The problem that I am having is that when you click on the link to go back, the checkbox on the form is checked, but the text fields are disabled.
You have to re-click the checkbox to update the text field.
View 3 Replies
View Related
Aug 11, 2010
I want to disable the browser close button using java script .
View 2 Replies
View Related
Apr 5, 2009
I need to know if the user close the browser or to open the window � browser without or with a disable close window button How can I???
View 6 Replies
View Related
Jun 6, 2009
I have been searching high and low on how to do this and I think I'm at a loss because I'm so unfamiliar with js and ajax.What I would like to do is have just a single div on a page refresh every 5-10 secs; the content of the div shows what users are logged on; the content is generated by a query on my db
<div id="players"><?php
$online_query = "SELECT user_log.user_id,user_log.ip,user_log.logged_in,user_log.logged_out,users.username,users.type_id FROM user_log LEFT JOIN users ON user_log.user_id=users.id WHERE user_log.logged_in IS NOT NULL AND user_log.logged_out IS NULL ORDER BY users.username";[code]....
almost all of the google results I got for refreshing a div were for updating dropdown boxes or dealt with some kind of page event...so now I'm at a loss on what else to look for..
View 3 Replies
View Related
Aug 21, 2009
I got this problem while disabling Up/Down arrow keys in Mozilla firefox browser useing javascript Given a standard HTML select/option box, I can capture any keypress while the select has focus and stop the select�s option list from changing values in IE but not in Mozilla.
[Code]....
In IE and Mozilla I have no trouble capturing the keyCode, and in IE I can prevent pressing a letter "D" and Up/Down arrows from making the list move to Dead, but the select list will drop to �Dead� in Mozilla. I've tried attaching the event handler to keyup, keydown and keypress, but have yet to find a way in Mozila to capture the keypress and prevent the select list from changing the current selection.
View 6 Replies
View Related
Oct 16, 2007
I am trying to make a webpage where I wish to disable text selection on entire body without affecting text input in a form by user. Though I found a couple of javascripts on the net, they don't seem to work with all three browsers (IE, FF, Opera). Code:
View 5 Replies
View Related
May 11, 2004
if there was a script to disable only the horizontal scroll bar in a browser window on a site with frames?
View 7 Replies
View Related
Jun 8, 2011
I have only started to learn HTML, CSS, and Javascript (roughly 2 weeks now). I am having a issues regarding when I submit form data to the server. I want to temporarily disable the 'submit' button while the browser is loading and then reactivate it once everything has finished loading. This was my attempt at doing this.
[Code]....
View 1 Replies
View Related
Mar 14, 2010
I've got a textarea form element being used for data entry, and I noticed in my testing that the "esc" key completely wipes out all the data when pressed.
Is there a way to either disable the "esc" key while in this screen, or is there another solution?
View 14 Replies
View Related
Apr 20, 2011
The following code is working fine in firefox n not working in IE8... I get the Object Expected Error when the code hits the if(GBrowserIsCompatible())..... line in the javascript code. Clear cache and browser history does not work. Does anyone have a resolution for this?
[Code]...
View 1 Replies
View Related