The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> I need Html code double click cursor move down
uk009
post Jun 25 2021, 02:43 PM
Post #1





Group: Members
Posts: 2
Joined: 25-June 21
Member No.: 27,996



Hi All

I need Html code " when i double click particular words like as "Apply now" cursor move to next line , at the same time new link wants to open with some delay.
I'm placing reference website t.ly/5Xjr in that page have "double click apply"

Please do the needful.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 25 2021, 05:14 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



JavaScript
CODE
function doAnnoyingThings(url)
{
   window.scrollBy(0,102);
   setTimeout(() => window.open(url), 4800);
}


HTML
<a href="https://google.com" onclick="doAnnoyingThings(this.href);return false">CLICK ME</a>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
uk009
post Jun 25 2021, 11:19 PM
Post #3





Group: Members
Posts: 2
Joined: 25-June 21
Member No.: 27,996



Html code is working ,when i click click me webpage opened, but java code how to map with dealy

can u please provide full set of code. please guide me
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 26 2021, 04:08 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>Do Annoying Things</title>

<script type="text/javascript">
function doAnnoyingThings(url)
{
   window.scrollBy(0,102);
   setTimeout(() => window.open(url), 4800);
}
</script>


</head>


<body>

<p>
<a href="http://google.com" onclick="doAnnoyingThings(this.href);return false">CLICK ME</a></p>

<p>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
Text to fill out the page so it can scroll<br>
</p>

</body>
</html>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 08:19 AM