I'm using following code for just dialog box, Its working fine.. But how can I stop from redirecting the same page while clicking?
<a href="" title = "this is some text">[?]</a>
Thanks in advance...
From the drop-down menu select Settings then scroll down and click Advanced. In the Privacy & security section choose Content settings > Pop-ups and redirects then ensure that the Allowed option is turned off.
To redirect one HTML page to another page, you need to add a <meta> tag inside the <head> section of the old HTML page. The <head> section of an HTML document contains metadata that is useful for the browser, but invisible to users viewing the page.
You can prevent redirects to other domains by checking the URL being passed to the redirect function. Make sure all redirect URLs are relative paths – i.e. they start with a single / character.
The simplest way to redirect to another URL is to use an HTML <meta> tag with the http-equiv parameter set to “refresh”. The content attribute sets the delay before the browser redirects the user to the new web page. To redirect immediately, set this parameter to “0” seconds for the content attribute.
add the # like so :
<a href="#" title = "this is some text">[?]</a>
or remove href of link and set url in some custom attribute
onclick event of link, read url from custom attribute
<a href="#" onclick="JSFunction()" id="someid" data-url="some url">text</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With