Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 21st, 2011, 07:14 AM
Authorized User
Points: 350, Level: 6
Points: 350, Level: 6 Points: 350, Level: 6 Points: 350, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2008
Location: , , Pakistan.
Posts: 54
Thanks: 8
Thanked 1 Time in 1 Post
Default Href link does not opens?

Hi!

When mouse pointer goes on the the line 'Click me to go on website' it should give a pop window 'In alert section' which comes then ok button is clicked, and the line 'Click me to go on website' it rather going on www.google.com.pk it gives
C:/Documents and Settings/arbab.ahmed/Desktop/www.google.com.pk.


<html>
<head>
<title>handling onMouseOut for links </title>
<script language="JavaScript">

function advertiseLink()
{
alert (" In alert Section")
if (Confirm(" in if confirm"))
{
window.location="http://www.google.com.pk"
}
}
</script>
</head>
<body>
<h1>handling onMouseOut for links</h1>
<p><a onmouseout="advertiseLink()" HREF='www.google.com.pk'> Click me to go on website </a></p>
</body>
</html>

what's wrong with this program?

Thanks in advance.
__________________
How to do programming?
Reply With Quote
  #2 (permalink)  
Old November 25th, 2011, 08:07 AM
Authorized User
Points: 57, Level: 1
Points: 57, Level: 1 Points: 57, Level: 1 Points: 57, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default

works fine to me.
__________________
Kushal Kaleshwari
Application Architect
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reg. a href link without maximise option. Ranveer@2468 BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 26th, 2011 10:00 AM
Prevent Double click on href link aspless Javascript 4 June 12th, 2009 02:08 PM
Saving XML thru href link using XSLT kaukabhishek XSLT 16 June 25th, 2008 07:16 PM
XML value in HRef link aware XSLT 3 January 8th, 2007 08:52 AM



All times are GMT -4. The time now is 08:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.