Hide link text from statusbar in wordpress - javascript

I have a text widget in my wordpress blog. Inside the text widget, i have a link. When mouse is hovered over the link, the link text shows up in the status bar.
To prevent the link text from showing in the status bar i tried using:
<a href="#" onmouseover="window.status=''" onclick="fun();return false;" > </a>
But, still the link text shows up in the status bar, when mouse is hovered over the link . i guess thats because the link is inside a text widget, so the status bar is inaccessible.
Still, is there any way to hide the link from showing up in the status bar when mouse is hovered over a link inside a text widget in wordpress ?
Thank You.

Since hackers abused this for malicious reasons, most browsers don't allow to modify the status line this way.

If you don't want status text in your status bar - don't use link, use button or span, styled as link.

Related

Disable link text in the Froala link plugin

I am using the Froala editor in my solution to create html that is to be sent to a PDF writer. The PDF writer does not support clickable links. This means that the full url must show as text.
So what I want is to disable the possibility to add links with custom text in the editor. I want it to be generated as a clickable anchor link (url) but I want the full url to show in the text. Reason I want this to be inserted as link rather than disabling the link plugin altogether, is that it will then be visually formatted as a link by css.
I have found the setting linkText: false for the Froala editor, which hides the text field inside the insert link popup. This is basically what I want - so far so good.
The issue is that the user can "work around" this by selecting a text in the editor before clicking the link button. The text is still not shown in the link popup, but the link you create is applied to the selected text, and the link url is not shown in the text.
Is there some way I can disable this behaviour in the link plugin so that if the user has selected a text before adding the link, the text will be ignored, and the link with url as text will just be inserted after the pre-selected text?
FroalaEditor version is 4.0.11
I ended up removing the possibility to open the link popup. I removed the insertLink from toolbarButtons and quickInsertButtons. I also removed linkEdit and linkRemove from linkEditButtons.
I also have the url plugin active, so that whenever I insert a text in the editor that the Froala url plugin recognizes as a valid url, it is wrapped in an <a> tag which provides the styling for links as I want. I still have the link plugin active but with only with linkEditButtons: ['linkOpen', 'linkStyle'] to be able to open the link from the editor and select from a couple of link styles I have set up.

How to trigger Elementor Popup based on specific url

I have a one page website with different sections and few simple popup which are triggered when user clicks on link/button on a page. I want same popup to open when user access website with a specific url example
www.example.com/#menu
www.example.com/#privacy-policy
I found setting under Elementor popup when arriving from specific URL but this option is not working for me.
I can do same using custom JavaScript unless it will not work with elementor feature.
I tried different combination of url such as https://www.example.com/#menu #menu https://example.com/#menu
its not working for any combination.
I did keep condition setting also as Entire site etc..
Just need a point as i could not find any specify article regarding this as most of the article are about how to trigger popup from link.
Set a class on the section you want.
Go to Popup triggers
Check "On scroll to element" en put the class in.
Now the pop up show op when you scroll on the section.

Redirect and scroll to specific content

hi guys can any one have idea whenever i click from footer link a new page will be open and the will scroll to a specific content below is the screen shot. Condition is the website is in yii framework and nothing others.
You can create an anchor in your HTML with <a id="some-content"></a> and change the location to some/action#some-content.
using <a> you can create that functionality
<a id="travel">Travel Privileges</a>
and try to add #travel in the location bar
Ex:
http://somedomain/privileges#travel

When i click on shadowbox link it opens but is just black?

When i click a shadowbox link it opens but it's just black. Though when I use a page that doesn't exist the 404 error page does show up. The path to the page is correct
Make sure that the page you are linking to includes the stylesheets.
Mine did the same thing but it turned out the background was just black along with the text. I assume by default somehow. You can verify if this is what is happening by highlighting the box and you can see the text highlighted. If it is there, just include a stylesheet and style the page to make the text display!

Adding a button to favorites that inserts javascript

I've seen a few sites offer a tool that allows users to drag a button to their favorites bar and then when they click on it, no matter what site they are on, a div of some form would pop up on the page. When I looked at the url of the button that I had dragged onto my favorites bar, I realized that it was actually javascript code.
How is this effect accomplished?
This is called a "bookmarklet". You can create a hyperlink that contains the necessary JavaScript code, which they drag into their bookmark toolbar.
It is as simple as creating a hyperlink on your page containing the JavaScript as its href. For example:
<a href='javascript:alert("you clicked a bookmarklet");'>Drag me to your bookmarks</a>
See it in action at JSFiddle...
In order to make it look like a button, CSS is applied (borders, background color, etc.).
Try typing this in the location bar of your browser, when you press return the javascript will execute automatically:
javascript:alert('hi');
Bookmark 'scriptlets' work using the same notion. If you have an <A> tag as follows on your page:
<a href="javascript:alert('hi');" >Hello Scriptlet</a>
And you drag it onto your bookmarks bar, you'll create a scriptlet with the same behaviour.

Categories