Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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?
  #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


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





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