473,654 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Control Refresh Mimic

Jay
Hello all,

Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl. key while clicking on the refresh button on the browser.

..J

Dec 9 '06 #1
3 2177

Jay wrote:
Hello all,

Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl. key while clicking on the refresh button on the browser.
What do you expect it to do? It does different things depending on the
browser and platform.

--
Rob

Dec 10 '06 #2
Jay
What do you expect it to do? It does different things depending on the
browser and platform.
I wanted it to have the same effect as it does on IE, although I know
that in Firefox it doesn't make any difference if you hold the Ctrl.
key down. Idealy i would like it to work on all browsers the same as it
does on IE but that's probably impossible to do in javascript.

..J

Dec 10 '06 #3
VK

Jay wrote:
Is it possible to mimic the Ctrl. + Refresh functionality with a button
in a webpage using javascript, ideally by placing a button(or link) on
a page that when clicked would have the same effect as holding down the
Ctrl.
1) There is not "Ctrl + Refresh" functionality. There is "reload
current page" command you can execute under Internet Explorer by using
shortcuts Ctrl+R or F5

2) Despite Ctrl+R shortcut is common to many other browsers (including
Firefox), on a long run never assume that everyone everywhere is using
the same browser that you are using. When applying to browser-specific
analogies always specify what UA are you referring to. Best of all is
avoiding any analogies all together and explaining the desired behavior
directly.

3)
<button type="button" onclick="
window.location .href = window.location .href;
">Refresh</button>

Dec 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
6191
by: Dave | last post by:
I have two forms, Form1 and Form2. From Form2, how do I reference the value in a control on Form1? Or perhaps a more specific question: Form1 contains a textbox with the value of 10. This form is hidden. Form2 is active and a user enters a value of 2 into a blank text box. How can I add this value to the textbox in Form1 so that when Form1 is displayed it's textbox displays 12? I probably have the wrong mindset here; I'm thinking...
1
3526
by: hqdtech | last post by:
how to refresh webform from other webform I have 2 webform, i want if webform A was close then webform B wil refresh. And the problem second: how to catch packet on the network in C#. thanks
4
1530
by: RL Stevenson | last post by:
Often I want to change the Enable or Visibility on a control when some other control on the form changes. Or maybe I need to make a change to the DataSource on a combo box when the user makes a selection elsewhere on the form. In Visual FoxPro, you would call Refresh on the form causing Refresh to be called on all the controls on the form, causing the Refresh event code to be called and allowing the controls to update themselves to the...
2
1891
by: Peter Oliphant | last post by:
I now have graphics being drawn in the Paint event of my form (yeah, and it's very cool). Problem was that it only updated any changes to these graphics when Paint was called. So, I then made it so the Refresh() method of the form was called for each graphic object. In this case it drew just fine, but Paint was being called so often I lost control of the form (e.g., trying to close the form using the close 'x' in upper right corner...
6
1970
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the header. To keep this total in sync, I count the items in the cart and refresh the label text in the load event of my header control. This all works well, except for one scenario. When the user is on the "Show Cart" page, they can delete items from...
0
1082
by: Allan Bredahl | last post by:
Hi all Im currently constructing a Windows control that inherits from RichTextBox, but I'm having a bit of trouble with updating the control at design time. The senario is SIMPLIFIED as follows: My RichTextBox control : Public Class Crtb
3
1464
by: --== Alain ==-- | last post by:
Hi, I have a control which has a collection property. when an item of the collection property will be added, removed, and so on, i would like to refresh the control itself. Usually for that i use eventhandler in the set method of the property. But as the collection property has only a get method, i'm not able to do it so.
1
403
by: Sue | last post by:
Hello Is there an equivalent of a OnTextChangedEvent for a asp: label control in asp.Net 2.0. Every time the text of a label changes, I want the items in a listbox control cleared. Tried doing as textbox and gave the ReadOnly="True" and border=0 to mimic a label control, but since the Readonly is set to true, the "OnTextChanged" event does not get fired.
3
4757
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a property based on CollectionBase class. like the following one : //------- XGrid.cs file --------------// public ColumnsCollection Columns {
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.