Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ I need Html code double click cursor move down

Posted by: uk009 Jun 25 2021, 02:43 PM

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.

Posted by: pandy Jun 25 2021, 05:14 PM

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>

Posted by: uk009 Jun 25 2021, 11:19 PM

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

Posted by: pandy Jun 26 2021, 04:08 AM

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>

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)