Execute one link onmouseover, then another onclick

  • bw1tmar0
  • Born
  • Born
  • bw1tmar0
  • Posts: 1
  • Loc: Germany

Post 3+ Months Ago

Hello,

I am stuck at a point in JavaScript.

I want to execute two links from one point from HTML page.

1. First link should be executed onmouseover event.
2. Second linkd should be executed onclick event from same point. This link also needs one parameter for it's execution.

Kindly let me know how to do it.

An early help will be great.

Kindly let me know if you require any other info.

Thanking you in anticipation.

Regards,
Rajeev Tomar.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Code: [ Select ]
function popUp(URLtoOpen, windowName, windowFeatures) {
window.open(URLtoOpen, windowName, windowFeatures);
}

<a href="www.google.com" onmouseover="popUp('page.html','popup','scrollbars=no');">Google</a>
  1. function popUp(URLtoOpen, windowName, windowFeatures) {
  2. window.open(URLtoOpen, windowName, windowFeatures);
  3. }
  4. <a href="www.google.com" onmouseover="popUp('page.html','popup','scrollbars=no');">Google</a>


Using onmouseover to open a window that way is going to be a pain if someone overshoots the link & has to come back :wink:
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

Personally, I think you're crazy. Psychotic, even.

Well, actually I think none of those; I'm just curious: Why do you want to do this? I'm seriously interested in knowing.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Sam Hughes wrote:
Personally, I think you're crazy. Psychotic, even.

Well, actually I think none of those; I'm just curious: Why do you want to do this? I'm seriously interested in knowing.


Popup ads seem the most likely, if combined with some javascript it could be used to popup say a reference list then close that list onclick or somthing of the sort.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.