473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can I disable links that redirect to other pages until they check the agree box

Please give me an idea/code on how I can disable links which redirect to other pages. I need the user to check an "agree" checkbox before they can click on the links.

Thanks guys
Sep 28 '10 #1
1 1348
Frinavale
9,735 Expert Mod 8TB
If you are not redirecting the users to other pages using your server-side code, then you'll have to implement a client-side solution to solve this problem.

You could handle the JavaScript onbeforeunload event to prevent the page from unloading if they user hasn't checked the "agree" checkbox.

-Frinny
Sep 28 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Paul Chao | last post by:
Hi, Newbie here so bear with me please. I'm wondering if it's possible to use Javascript to write a new page that contains other pages in the same domain without using frame or layer. Say I...
1
by: Tim | last post by:
Hi, We are downloading a few thousand rows of data for users to choose from and need to speed up the operation. The data is related in four levels. The current design allows the user to select...
2
by: CW | last post by:
I have pages, such as LogOn.aspx, Payment.aspx that enforces the use of SSL. Every single one of my page embeds a header and menu server controls - which have links to other pages that do not...
6
by: Daves | last post by:
can anyone imagine why I cannot access static variables in my global class from other pages, eg: myNumber = myGlobal.UserID; where global.asax contains: <%@ Application Language="C#"...
1
by: Hardy Wang | last post by:
Hi, I have my own user table with definition like UserID int not null primary key, Username varchar(50) not null, Password varchar(50) not null, Firstname varchar(50) not null, Lastname...
1
by: Max Kubierschky | last post by:
Hi, I try to use epydoc with reStructuredText. It works fine, my only problem is that I couldn't figure out the syntax for links to other methods or classes. Any hints? Max P.S: Where is...
1
by: czi02 | last post by:
Ive type my name on microsoft frontapge (html) For example cziarel. I like it to show my picture when ive click my name cziarel. Then ive hyperlink it the cziarel then hown can I find the files to...
1
by: mshiva | last post by:
hi friends i want to open a login page first even for accessing any other pages in the application. my code in web.config: <authentication mode="Forms"> <forms loginUrl="~/Pages/login.aspx" ...
1
by: sehguh | last post by:
hello A friend of mine recently created a control on a pc desktop using visual basic 6. What i want to know is how to create an icon and link it to another application on your pc. Applications...
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, We have two sites hosted on different servers and we have many pages on domain A which has many links(asp programs) to domain B. My question is if domain B server is in trouble, what is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...

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.