Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1784 Can I create a link without having a hand pointer?

You are here: irt.org | FAQ | JavaScript | Pointer | Q1784 [ previous next ]

Instead of creating the link with an html anchor, use onClick="window.open(...)" within a <span>, <div>, <p>, etc. tag (for text). Unless you also specify a particular cursor style, the pointer will behave as if it's ordinary text.

<span onClick=self.location.href="nextpage.html">
Click here to load into the same window
</span>

<div onClick=window.open('nextpage.html','title','')>
Click here to open a new window
</div>

It works with images, too...

<img src="linkpic.jpg" onClick=self.location.href="nextpage.html">

This makes the pointer an hourglass...

<span onClick=self.location.href="nextpage.html" style="cursor:wait">
Click here to load into the same window
</span>

Submitted by Mister Wags

©2018 Martin Webb