473,320 Members | 2,094 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,320 software developers and data experts.

hyperlink displays alert first

hi all can someone show me a quick function to make an alert display
before a hyperlink takes you through to the target page

much obliged

marc

Jul 29 '06 #1
2 1393
libsfan01 said the following on 7/29/2006 3:40 PM:
hi all can someone show me a quick function to make an alert display
before a hyperlink takes you through to the target page
Do I get credit for your homework as well?

<a href="http://www.google.com/" onclick="alert('This is an annoying
alert that you will get before being navigated to Google, but you will
only see this alert if you have scripting enabled and there are no
script errors in the page.">Google</a>

All on one line.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 29 '06 #2
Randy you da man. When's the book coming out?

Randy Webb wrote:
libsfan01 said the following on 7/29/2006 3:40 PM:
hi all can someone show me a quick function to make an alert display
before a hyperlink takes you through to the target page

Do I get credit for your homework as well?

<a href="http://www.google.com/" onclick="alert('This is an annoying
alert that you will get before being navigated to Google, but you will
only see this alert if you have scripting enabled and there are no
script errors in the page.">Google</a>

All on one line.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 30 '06 #3

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

Similar topics

5
by: Janet | last post by:
The following html code appears in an ASP page. The hyperlink is set to white (see the page link color), but when the page renders in IE 6.0, it initially appears in maroon with a white border...
6
by: Xandax | last post by:
Hiya all. I'm trying to capture which key is pressed when a hyperlink is active, which I'd thought would be simpel. However - IE returns undefined and FireFox returns 0 when I try to alert the...
2
by: Doug Stiers | last post by:
I have an asp:hyperlink that I need to have some code fire when the link is clicked. The link is in a datagrid and the link is working properly. I tried using the OnInit event to call the...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
1
by: SAL | last post by:
Has anyone worked with the System.Web.UI.WebControls.HyperLink? I am trying to find examples on how to use it. What I am trying to do is assign a Hyperlink to a document (i.e. .doc, .pdf,...
6
by: wonijack | last post by:
Long time listener first time poster I have a link that I need to put into the if statement. Here is my hyperlink <a href="notify.aspid=<%# DataBinder.Eval(Container.DataItem, "theid")...
2
by: maralfarshadi | last post by:
Hi I have a hyperlink in my form, and I am using: <a href="javascript:myFunction('myTextBox','myFormName','ServletName')"> Go </a> In my Javascript code, if all goes well, the form gets...
1
SBCUser666
by: SBCUser666 | last post by:
Form field (Text66) defined as Hyperlink. Access 2003 table field defined as Hyperlink. Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.